- Sort Score
- Result 10 results
- Languages All
Results 471 - 480 of 1,002 for Struct (0.03 sec)
-
schema/serializer_test.go
uintPtrValue = &uintValue uint8PtrValue = &uint8Value uint16PtrValue = &uint16Value uint32PtrValue = &uint32Value uint64PtrValue = &uint64Value maxInt64Plus1Ptr = &maxInt64Plus1 ) tests := []struct { name string value interface{} want interface{} wantErr bool }{ { name: "int", value: intValue, want: time.Unix(int64(intValue), 0).UTC(), wantErr: false, },Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Oct 26 12:29:44 UTC 2025 - 4.8K bytes - Viewed (0) -
internal/kms/errors.go
} ) // Error is a KMS error that can be translated into an S3 API error. // // It does not implement the standard error Unwrap interface for // better error log messages. type Error struct { Code int // The HTTP status code returned to the client APICode string // The API error code identifying the error Err string // The error message returned to the clientRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Jul 16 14:03:03 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/erasure-encode.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "context" "fmt" "io" ) // Writes to multiple writers type multiWriter struct { writers []io.Writer writeQuorum int errs []error } // Write writes data to writers. func (p *multiWriter) Write(ctx context.Context, blocks [][]byte) error { for i := range p.writers {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.9K bytes - Viewed (0) -
cmd/xl-storage_windows_test.go
package cmd import ( "bytes" "context" "fmt" "testing" ) // Test if various paths work as expected when converted to UNC form func TestUNCPaths(t *testing.T) { testCases := []struct { objName string pass bool }{ {"/abcdef", true}, {"/a/b/c/d/e/f/g", true}, {string(bytes.Repeat([]byte("界"), 85)), true}, // Each path component must be <= 255 bytes long.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Nov 29 06:35:16 UTC 2023 - 2.8K bytes - Viewed (0) -
internal/s3select/jstream/scanner_test.go
} if c != data[i] { t.Fatalf("expected %s, got %s", string(data[i]), string(c)) } t.Logf("pos=%d remaining=%d (%s)", i, r.Len(), string(c)) i++ } } type mockReader struct { pos int mockData byte failAfter int } func newMockReader(failAfter int, data byte) *mockReader { return &mockReader{0, data, failAfter} }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.1K bytes - Viewed (0) -
clause/from_test.go
package clause_test import ( "fmt" "testing" "gorm.io/gorm/clause" ) func TestFrom(t *testing.T) { results := []struct { Clauses []clause.Interface Result string Vars []interface{} }{ { []clause.Interface{clause.Select{}, clause.From{}}, "SELECT * FROM `users`", nil, }, { []clause.Interface{ clause.Select{}, clause.From{ Tables: []clause.Table{{Name: "users"}},
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Wed Jul 15 02:25:10 UTC 2020 - 1.9K bytes - Viewed (0) -
clause/set.go
package clause import "sort" type Set []Assignment type Assignment struct { Column Column Value interface{} } // Assigner assignments provider interface type Assigner interface { Assignments() []Assignment } func (set Set) Name() string { return "SET" } func (set Set) Build(builder Builder) { if len(set) > 0 { for idx, assignment := range set { if idx > 0 { builder.WriteByte(',')
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Tue Sep 09 01:34:33 UTC 2025 - 1.7K bytes - Viewed (0) -
cmd/ilm-config.go
import ( "sync" "github.com/minio/minio/internal/config/ilm" ) var globalILMConfig = ilmConfig{ cfg: ilm.Config{ ExpirationWorkers: 100, TransitionWorkers: 100, }, } type ilmConfig struct { mu sync.RWMutex cfg ilm.Config } func (c *ilmConfig) getExpirationWorkers() int { c.mu.RLock() defer c.mu.RUnlock() return c.cfg.ExpirationWorkers }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Mar 05 02:50:24 UTC 2024 - 1.3K bytes - Viewed (0) -
internal/bucket/replication/error.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package replication import ( "fmt" ) // Error is the generic type for any error happening during tag // parsing. type Error struct { err error } // Errorf - formats according to a format specifier and returns // the string as a value that satisfies error of type tagging.Error func Errorf(format string, a ...any) error {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 1.3K bytes - Viewed (0) -
internal/dsync/locked_rand.go
package dsync import ( "math/rand" "sync" ) // lockedRandSource provides protected rand source, implements rand.Source interface. type lockedRandSource struct { lk sync.Mutex src rand.Source } // Int63 returns a non-negative pseudo-random 63-bit integer as an int64. func (r *lockedRandSource) Int63() (n int64) { r.lk.Lock() n = r.src.Int63() r.lk.Unlock()
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 1.3K bytes - Viewed (0)