- Sort Score
- Result 10 results
- Languages All
Results 481 - 490 of 1,644 for Go (0.01 sec)
-
tests/lru_test.go
t.Fatalf("length differs from expected") } } func TestLRUConcurrency(t *testing.T) { lc := lru.NewLRU[string, string](0, nil, 0) wg := sync.WaitGroup{} wg.Add(1000) for i := 0; i < 1000; i++ { go func(i int) { lc.Add(fmt.Sprintf("key-%d", i/10), fmt.Sprintf("val-%d", i/10)) wg.Done() }(i) } wg.Wait() if lc.Len() != 100 { t.Fatalf("length differs from expected") } }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Sep 08 09:19:22 UTC 2025 - 10.4K bytes - Viewed (0) -
cmd/erasure-metadata.go
maxHash = hash } } if maxCount < quorum { return FileInfo{}, InsufficientReadQuorum{Err: errErasureReadQuorum, Type: RQInconsistentMeta} } // objProps represents properties that go beyond a single version type objProps struct { succModTime time.Time numVersions int } // Find the successor mod time and numVersions in quorum, otherwise leave the // candidate as found
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 21.3K bytes - Viewed (0) -
cmd/batch-rotate.go
package cmd import ( "context" "encoding/base64" "fmt" "maps" "math/rand" "net/http" "runtime" "strconv" "strings" "time" jsoniter "github.com/json-iterator/go" "github.com/minio/minio-go/v7/pkg/tags" "github.com/minio/minio/internal/crypto" xhttp "github.com/minio/minio/internal/http" "github.com/minio/minio/internal/kms" "github.com/minio/pkg/v3/env" "github.com/minio/pkg/v3/workers" )
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 14.7K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package lex import ( "fmt" "os" "path/filepath" "slices" "strconv" "strings" "text/scanner" "cmd/asm/internal/flags" "cmd/internal/objabi" "cmd/internal/src" ) // Input is the main input: a stack of readers and some macro definitions.
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Wed Nov 12 03:59:40 UTC 2025 - 12.4K bytes - Viewed (0) -
cmd/api-headers.go
// report encoding bugs to AWS, and use ASCII-only metadata to ensure reliable S3 API // compatibility. if needsMimeEncoding(v) { // see https://github.com/golang/go/blob/release-branch.go1.24/src/net/mail/message.go#L325 if strings.ContainsAny(v, "\"#$%&'(),.:;<>@[]^`{|}~") { v = mime.BEncoding.Encode("UTF-8", v) } else { v = mime.QEncoding.Encode("UTF-8", v) } }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.6K bytes - Viewed (0) -
cmd/metrics-resource.go
collectMetric(metric, labels, values, "resource", out) } } // Call peer api to fetch metrics wg.Add(2) go publish(ReportMetrics(GlobalContext, c.metricsGroups)) go publish(globalNotificationSys.GetResourceMetrics(GlobalContext)) wg.Wait() } // newMinioResourceCollector describes the collector // and returns reference of minio resource Collector
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 10 18:57:03 UTC 2025 - 17.2K bytes - Viewed (0) -
cmd/encryption-v1_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "bytes" "encoding/base64" "net/http" "testing" humanize "github.com/dustin/go-humanize" "github.com/minio/minio-go/v7/pkg/encrypt" "github.com/minio/minio/internal/crypto" xhttp "github.com/minio/minio/internal/http" "github.com/minio/sio" ) var encryptRequestTests = []struct { header map[string]string
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 19.9K bytes - Viewed (0) -
cmd/config-dir.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 3K bytes - Viewed (0) -
cmd/bucket-metadata.go
package cmd import ( "bytes" "context" "crypto/rand" "encoding/binary" "encoding/json" "encoding/xml" "errors" "fmt" "path" "time" "github.com/minio/madmin-go/v3" "github.com/minio/minio-go/v7/pkg/tags" bucketsse "github.com/minio/minio/internal/bucket/encryption" "github.com/minio/minio/internal/bucket/lifecycle" objectlock "github.com/minio/minio/internal/bucket/object/lock"
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 18.2K bytes - Viewed (0) -
internal/kms/secret-key.go
"crypto/hmac" "encoding/base64" "encoding/json" "errors" "strconv" "strings" "sync/atomic" "github.com/secure-io/sio-go/sioutil" "golang.org/x/crypto/chacha20" "golang.org/x/crypto/chacha20poly1305" "github.com/minio/kms-go/kms" "github.com/minio/madmin-go/v3" "github.com/minio/minio/internal/hash/sha256" ) // ParseSecretKey parses s as <key-id>:<base64> and returns a
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Apr 21 16:23:51 UTC 2025 - 8.4K bytes - Viewed (0)