Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 531 - 540 of 1,053 for struct_ (0.07 seconds)

  1. cmd/bitrot-streaming.go

    	"github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/ringbuffer"
    )
    
    // Calculates bitrot in chunks and writes the hash into the stream.
    type streamingBitrotWriter struct {
    	iow          io.WriteCloser
    	closeWithErr func(err error)
    	h            hash.Hash
    	shardSize    int64
    	canClose     *sync.WaitGroup
    	byteBuf      []byte
    	finished     bool
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Jan 17 19:19:30 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  2. clause/limit_test.go

    package clause_test
    
    import (
    	"fmt"
    	"testing"
    
    	"gorm.io/gorm/clause"
    )
    
    func TestLimit(t *testing.T) {
    	limit0 := 0
    	limit10 := 10
    	limit50 := 50
    	limitNeg10 := -10
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Limit{
    				Limit:  &limit10,
    				Offset: 20,
    			}},
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  3. internal/config/lambda/event/targetid.go

    package event
    
    import (
    	"encoding/json"
    	"fmt"
    	"strings"
    )
    
    // TargetID - holds identification and name strings of notification target.
    type TargetID struct {
    	ID   string
    	Name string
    }
    
    // String - returns string representation.
    func (tid TargetID) String() string {
    	return tid.ID + ":" + tid.Name
    }
    
    // ToARN - converts to ARN.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 1.8K bytes
    - Click Count (0)
  4. internal/event/arn.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package event
    
    import (
    	"encoding/xml"
    	"strings"
    )
    
    // ARN - SQS resource name representation.
    type ARN struct {
    	TargetID
    	region string
    }
    
    // String - returns string representation.
    func (arn ARN) String() string {
    	if arn.ID == "" && arn.Name == "" && arn.region == "" {
    		return ""
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 2K bytes
    - Click Count (0)
  5. internal/http/request-recorder.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package http
    
    import (
    	"bytes"
    	"io"
    )
    
    // RequestRecorder - records the
    // of a given io.Reader
    type RequestRecorder struct {
    	// Data source to record
    	io.Reader
    	// Response body should be logged
    	LogBody bool
    
    	// internal recording buffer
    	buf bytes.Buffer
    	// total bytes read including header size
    	bytesRead int
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 12 21:37:19 GMT 2023
    - 1.8K bytes
    - Click Count (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelReader.java

            return (InputSource) value;
        }
    
        private Model read(Reader reader, boolean strict, InputSource source) throws IOException {
            try {
                if (source != null) {
                    return new MavenXpp3ReaderEx().read(reader, strict, source);
                } else {
                    return new MavenXpp3Reader().read(reader, strict);
                }
            } catch (XmlPullParserException e) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. generics_withresult_test.go

    package gorm_test
    
    import (
    	"context"
    	"testing"
    
    	"gorm.io/driver/sqlite"
    	"gorm.io/gorm"
    )
    
    type withResultUser struct {
    	ID   uint
    	Name string
    }
    
    func TestWithResultIncludesError(t *testing.T) {
    	db, err := gorm.Open(sqlite.Open("file::memory:?cache=shared"), &gorm.Config{})
    	if err != nil {
    		t.Fatalf("open db failed: %v", err)
    	}
    	if err := db.AutoMigrate(&withResultUser{}); err != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 1.2K bytes
    - Click Count (0)
  8. cmd/storagemetric_string.go

    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[storageMetricMakeVolBulk-0]
    	_ = x[storageMetricMakeVol-1]
    	_ = x[storageMetricListVols-2]
    	_ = x[storageMetricStatVol-3]
    	_ = x[storageMetricDeleteVol-4]
    	_ = x[storageMetricWalkDir-5]
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Aug 12 08:38:15 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  9. internal/s3select/jstream/errors.go

    	ErrMaxDepth      = DecoderError{msg: "maximum recursion depth exceeded"}
    )
    
    type errPos [2]int // line number, byte offset where error occurred
    
    // DecoderError contains a detailed decoding error.
    type DecoderError struct {
    	msg       string // description of error
    	context   string // additional error context
    	pos       errPos
    	atChar    byte
    	readerErr error // underlying reader error, if any
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Sep 23 19:35:41 GMT 2024
    - 1.3K bytes
    - Click Count (0)
  10. internal/s3select/sql/timestampfuncs_test.go

    	"time"
    )
    
    func TestParseAndDisplaySQLTimestamp(t *testing.T) {
    	beijing := time.FixedZone("", int((8 * time.Hour).Seconds()))
    	fakeLosAngeles := time.FixedZone("", -int((8 * time.Hour).Seconds()))
    	cases := []struct {
    		s string
    		t time.Time
    	}{
    		{"2010T", time.Date(2010, 1, 1, 0, 0, 0, 0, time.UTC)},
    		{"2010-02T", time.Date(2010, 2, 1, 0, 0, 0, 0, time.UTC)},
    		{"2010-02-03T", time.Date(2010, 2, 3, 0, 0, 0, 0, time.UTC)},
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.2K bytes
    - Click Count (0)
Back to Top