- Sort Score
- Result 10 results
- Languages All
Results 681 - 690 of 994 for Structs (0.18 sec)
-
tests/group_by_test.go
t.Errorf("no error should happen, but got %v", err) } if name != "groupby1" || total != 660 { t.Errorf("name should be groupby, but got %v, total should be 660, but got %v", name, total) } result := struct { Name string Total int64 }{} if err := DB.Model(&User{}).Select("name, sum(age) as total").Where("name LIKE ?", "groupby%").Group("name").Having("name = ?", "groupby1").Find(&result).Error; err != nil {
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 3.3K bytes - Viewed (0) -
internal/s3select/jstream/README.md
``` likewise, increasing depth level to `3` yields: ``` red green blue cyan magenta yellow black ``` optionally, kev:value pairs can be emitted as an individual struct: ```go decoder := jstream.NewDecoder(f, 2).EmitKV() // enable KV streaming at a depth level of 2 ``` ``` jstream.KV{desc RGB} jstream.KV{colors [red green blue]} jstream.KV{desc CMYK}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 3.2K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go
"k8s.io/client-go/rest/fake" cmdtesting "k8s.io/kubectl/pkg/cmd/testing" cmdutil "k8s.io/kubectl/pkg/cmd/util" "istio.io/istio/istioctl/pkg/cli" "istio.io/istio/pkg/kube" ) type execTestCase struct { execClientConfig map[string][]byte args []string // Typically use one of the three expectedOutput string // Expected constant output expectedString string // String output is expected to contain
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Apr 10 21:51:29 UTC 2024 - 3.8K bytes - Viewed (0) -
src/bytes/buffer_test.go
) const N = 10000 // make this bigger for a larger (and slower) test var testString string // test data for write tests var testBytes []byte // test data; same as testString but as a slice. type negativeReader struct{} func (r *negativeReader) Read([]byte) (int, error) { return -1, nil } func init() { testBytes = make([]byte, N) for i := 0; i < N; i++ { testBytes[i] = 'a' + byte(i%26) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Sep 03 20:55:15 UTC 2024 - 18.6K bytes - Viewed (0) -
internal/config/certs_test.go
M9ofSEt/bdRD -----END CERTIFICATE-----`) if err != nil { t.Fatalf("Unable to create temporary file. %v", err) } defer os.Remove(tempFile5) testCases := []struct { certFile string expectedResultLen int expectedErr bool }{ {"nonexistent-file", 0, true}, {tempFile1, 0, true}, {tempFile2, 0, true}, {tempFile3, 0, true},
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 21.6K bytes - Viewed (0) -
cmd/update.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 18.7K bytes - Viewed (0) -
internal/bucket/lifecycle/filter.go
"github.com/minio/minio-go/v7/pkg/tags" ) var errInvalidFilter = Errorf("Filter must have exactly one of Prefix, Tag, or And specified") // Filter - a filter for a lifecycle configuration Rule. type Filter struct { XMLName xml.Name `xml:"Filter"` set bool Prefix Prefix ObjectSizeGreaterThan int64 `xml:"ObjectSizeGreaterThan,omitempty"` ObjectSizeLessThan int64 `xml:"ObjectSizeLessThan,omitempty"`
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 04 17:01:26 UTC 2024 - 6.2K bytes - Viewed (0) -
internal/logger/logrotate.go
) func defaultFilenameFunc() string { return fmt.Sprintf("minio-%s.log", fmt.Sprintf("%X", time.Now().UTC().UnixNano())) } // Options define configuration options for Writer type Options struct { // Directory defines the directory where log files will be written to. // If the directory does not exist, it will be created. Directory string // MaximumFileSize defines the maximum size of each log file in bytes.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/bucket/versioning/DESIGN.md
Each header contains a mspg array (tuple) encoded object: xlHeaderVersion version == 1: ``` //msgp:tuple xlMetaV2VersionHeader type xlMetaV2VersionHeader struct { VersionID [16]byte // Version UUID, raw. ModTime int64 // Unix nanoseconds. Signature [4]byte // Signature of metadata. Type uint8 // Type if the version Flags uint8 } ```
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jul 17 15:43:14 UTC 2022 - 5.8K bytes - Viewed (0) -
internal/bucket/encryption/bucket-sse-config_test.go
}, Rules: []Rule{ { DefaultEncryptionAction: EncryptionAction{ Algorithm: AWSKms, MasterKeyID: "arn:aws:kms:my-minio-key", }, }, }, } testCases := []struct { inputXML string keyID string expectedErr error shouldPass bool expectedConfig *BucketSSEConfig }{ // 1. Valid XML SSE-S3 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 16 18:28:30 UTC 2022 - 6.1K bytes - Viewed (0)