- Sort Score
- Num 10 results
- Language All
Results 521 - 530 of 1,053 for struct_ (0.13 seconds)
-
cmd/metacache-stream.go
// If the stream ends before a false boolean it can be assumed it was truncated. const metacacheStreamVersion = 2 // metacacheWriter provides a serializer of metacache objects. type metacacheWriter struct { streamErr error mw *msgp.Writer creator func() error closer func() error blockSize int streamWg sync.WaitGroup reuseBlocks bool }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 07 15:37:12 GMT 2025 - 19.5K bytes - Click Count (0) -
cmd/object-handlers_test.go
// since dataInserted === dataFetched back is a primary criteria for any object storage this assertion is critical. bytesData := []struct { byteData []byte }{ {generateBytesData(6 * humanize.MiByte)}, } // set of inputs for uploading the objects before tests for downloading is done. putObjectInputs := []struct { bucketName string objectName string contentLength int64 textData []byteCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 163.1K bytes - Click Count (0) -
internal/config/ilm/ilm.go
Key: transitionWorkers, Value: "100", }, config.KV{ Key: expirationWorkers, Value: "100", }, } // Config represents the different configuration values for ILM subsystem type Config struct { TransitionWorkers int ExpirationWorkers int } // LookupConfig - lookup ilm config and override with valid environment settings if any. func LookupConfig(kvs config.KVS) (cfg Config, err error) { cfg = Config{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 1.9K bytes - Click Count (0) -
src/archive/zip/fuzz_test.go
} f.Add(b) } f.Fuzz(func(t *testing.T, b []byte) { r, err := NewReader(bytes.NewReader(b), int64(len(b))) if err != nil { return } type file struct { header *FileHeader content []byte } files := []file{} for _, f := range r.File { fr, err := f.Open() if err != nil { continue } content, err := io.ReadAll(fr)
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 13 18:06:33 GMT 2022 - 1.7K bytes - Click Count (0) -
cmd/local-locker.go
// Rejected clients are expected to retry. const lockMutexWaitLimit = 1000 // lockRequesterInfo stores various info from the client for each lock that is requested. type lockRequesterInfo struct { Name string // name of the resource lock was requested for Writer bool // Bool whether write or read lock. UID string // UID to uniquely identify request of client.Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 12K bytes - Click Count (0) -
prepare_stmt.go
package gorm import ( "context" "database/sql" "database/sql/driver" "errors" "reflect" "sync" "time" "gorm.io/gorm/internal/stmt_store" ) type PreparedStmtDB struct { Stmts stmt_store.Store Mux *sync.RWMutex ConnPool } // NewPreparedStmtDB creates and initializes a new instance of PreparedStmtDB. // // Parameters:
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri Apr 25 08:22:26 GMT 2025 - 5.7K bytes - Click Count (0) -
cmd/config-encrypted_test.go
edata1, err := madmin.EncryptData(cred1.String(), data) if err != nil { t.Fatal(err) } edata2, err := madmin.EncryptData(cred2.String(), data) if err != nil { t.Fatal(err) } tests := []struct { edata []byte cred auth.Credentials success bool }{ {edata1, cred1, true}, {edata2, cred2, true}, {data, cred1, false}, } for _, test := range tests {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Jun 20 00:53:08 GMT 2023 - 1.9K bytes - Click Count (0) -
internal/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 Jun 01 21:59:40 GMT 2021 - 1.8K bytes - Click Count (0) -
internal/http/check_port_test.go
t.Skip() } l, err := net.Listen("tcp", "localhost:0") // ask kernel for a free port. if err != nil { t.Fatal(err) } defer l.Close() port := l.Addr().(*net.TCPAddr).Port testCases := []struct { host string port int expectedErr error }{ {"", port, fmt.Errorf("listen tcp :%v: bind: address already in use", port)},
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 03 21:12:25 GMT 2023 - 1.9K bytes - Click Count (0) -
internal/grid/connection.go
resp(mid.closed) mid.respMu.Unlock() case debugBlockInboundMessages: c.connMu.Lock() a, _ := args[0].(chan struct{}) block := (<-chan struct{})(a) c.blockMessages.Store(&block) c.connMu.Unlock() } } // wsWriter writes websocket messages. type wsWriter struct { tmp [ws.MaxHeaderSize]byte } // writeMessage writes a message to w without allocations.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 46.9K bytes - Click Count (0)