Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 713 for Struct (0.03 sec)

  1. tests/embedded_struct_test.go

    )
    
    func TestEmbeddedStruct(t *testing.T) {
    	type ReadOnly struct {
    		ReadOnly *bool
    	}
    
    	type BasePost struct {
    		Id    int64
    		Title string
    		URL   string
    		ReadOnly
    	}
    
    	type Author struct {
    		ID    string
    		Name  string
    		Email string
    	}
    
    	type HNPost struct {
    		BasePost
    		Author  `gorm:"EmbeddedPrefix:user_"` // Embedded struct
    		Upvotes int32
    	}
    
    	type EngadgetPost struct {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. tests/preload_suits_test.go

    	type (
    		Level0 struct {
    			ID       uint
    			Value    string
    			Level1ID uint
    		}
    		Level1 struct {
    			ID         uint
    			Value      string
    			Level2ID   *uint
    			Level2_1ID *uint
    			Level0s    []Level0 `json:",omitempty"`
    		}
    		Level2 struct {
    			ID       uint
    			Level1s  []Level1
    			Level3ID uint
    		}
    		Level2_1 struct {
    			ID       uint
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Jun 05 11:34:13 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  3. cmd/api-datatypes.go

    	}
    	return e.EncodeElement(t.Format(time.RFC3339), startElement)
    }
    
    // ObjectV object version key/versionId
    type ObjectV struct {
    	ObjectName string `xml:"Key"`
    	VersionID  string `xml:"VersionId"`
    }
    
    // ObjectToDelete carries key name for the object to delete.
    type ObjectToDelete struct {
    	ObjectV
    	// Replication status of DeleteMarker
    	DeleteMarkerReplicationStatus string `xml:"DeleteMarkerReplicationStatus"`
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. internal/s3select/jstream/scanner.go

    	maxInt   = int64(maxUint >> 1)
    	nullByte = byte(0)
    )
    
    type scanner struct {
    	pos       int64 // position in reader
    	ipos      int64 // internal buffer position
    	ifill     int64 // internal buffer fill
    	end       int64
    	buf       [chunk + 1]byte // internal buffer (with a lookback size of 1)
    	nbuf      [chunk]byte     // next internal buffer
    	fillReq   chan struct{}
    	fillReady chan int64
    	readerErr error // underlying reader error, if any
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. internal/pubsub/pubsub_test.go

    	}
    }
    
    func TestUnsubscribe(t *testing.T) {
    	ps := New[Maskable, Maskable](2)
    	ch1 := make(chan Maskable, 1)
    	ch2 := make(chan Maskable, 1)
    	doneCh1 := make(chan struct{})
    	doneCh2 := make(chan struct{})
    	if err := ps.Subscribe(MaskAll, ch1, doneCh1, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if err := ps.Subscribe(MaskAll, ch2, doneCh2, nil); err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. cmd/bucket-replication-utils.go

    }
    
    // ResyncTargetsInfo holds a slice of targets with resync info per target
    type ResyncTargetsInfo struct {
    	Targets []ResyncTarget `json:"target,omitempty"`
    }
    
    // ResyncTarget is a struct representing the Target reset ID where target is identified by its Arn
    type ResyncTarget struct {
    	Arn       string    `json:"arn"`
    	ResetID   string    `json:"resetid"`
    	StartTime time.Time `json:"startTime"`
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 26.1K bytes
    - Viewed (0)
  7. cmd/api-response.go

    type ListBucketsResponse struct {
    	XMLName xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ ListAllMyBucketsResult" json:"-"`
    
    	Owner Owner
    
    	// Container for one or more buckets.
    	Buckets struct {
    		Buckets []Bucket `xml:"Bucket"`
    	} // Buckets are nested
    }
    
    // Upload container for in progress multipart upload
    type Upload struct {
    	Key          string
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:19 UTC 2025
    - 35K bytes
    - Viewed (0)
  8. schema/schema_test.go

    			f.Readable = true
    		})
    	}
    }
    
    func TestEmbeddedStruct(t *testing.T) {
    	type CorpBase struct {
    		gorm.Model
    		OwnerID string
    	}
    
    	type Company struct {
    		ID      int
    		OwnerID int
    		Name    string
    		Ignored string `gorm:"-"`
    	}
    
    	type Corp struct {
    		CorpBase
    		Base Company `gorm:"embedded;embeddedPrefix:company_"`
    	}
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Thu Aug 28 02:57:17 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  9. cmd/object-api-datatypes.go

    // client during CompleteMultipartUpload request.
    type CompleteMultipartUpload struct {
    	Parts []CompletePart `xml:"Part"`
    }
    
    // NewMultipartUploadResult contains information about a newly created multipart upload.
    type NewMultipartUploadResult struct {
    	UploadID     string
    	ChecksumAlgo string
    	ChecksumType string
    }
    
    type getObjectAttributesResponse struct {
    	ETag         string                    `xml:",omitempty"`
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  10. cmd/bucket-replication-metrics.go

    	}
    	return w
    }
    
    // QStat holds queue stats for replication
    type QStat struct {
    	Count float64 `json:"count"`
    	Bytes float64 `json:"bytes"`
    }
    
    func (q *QStat) add(o QStat) QStat {
    	return QStat{Bytes: q.Bytes + o.Bytes, Count: q.Count + o.Count}
    }
    
    // InQueueMetric holds queue stats for replication
    type InQueueMetric struct {
    	Curr QStat `json:"curr" msg:"cq"`
    	Avg  QStat `json:"avg" msg:"aq"`
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top