- Sort Score
- Num 10 results
- Language All
Results 381 - 390 of 2,996 for switch (0.06 seconds)
-
cmd/http-tracer_test.go
const opsPerGoroutine = 100 var wg sync.WaitGroup for i := range numWriters { wg.Add(1) go func(writerID int) { defer wg.Done() for j := 0; j < opsPerGoroutine; j++ { switch j % 4 { case 0: httpStats.updateStats("GetObject", &xhttp.ResponseRecorder{}) case 1: httpStats.totalS3Requests.Inc("PutObject") case 2: httpStats.totalS3Errors.Inc("DeleteObject")Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 5.3K bytes - Click Count (0) -
cmd/sts-errors.go
stsErrorResponse.RequestID = w.Header().Get(xhttp.AmzRequestID) stsErrorResponse.Error.Message = stsErr.Description if err != nil { stsErrorResponse.Error.Message = err.Error() } switch errCode { case ErrSTSInternalError, ErrSTSUpstreamError: stsLogIf(ctx, err, logger.ErrorKind) } encodedErrorResponse := encodeResponse(stsErrorResponse)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 05 00:29:41 GMT 2025 - 6K bytes - Click Count (1) -
internal/config/browser/browser.go
cfg.HSTSIncludeSubdomains = hstsIncludeSubdomains cfg.HSTSPreload = hstsPreload referrerPolicy := env.Get(EnvBrowserReferrerPolicy, kvs.GetWithDefault(browserReferrerPolicy, DefaultKVS)) switch referrerPolicy { case "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url": cfg.ReferrerPolicy = referrerPolicy
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jun 21 00:58:58 GMT 2024 - 5.9K bytes - Click Count (0) -
docs/debugging/s3-check-md5/main.go
if versions { fpath += ":" + obj.VersionID } return fpath } // List all objects from a bucket-name with a matching prefix. for object := range s3Client.ListObjects(context.Background(), bucket, opts) { if object.Err != nil { log.Println("FAILED: LIST with error:", object.Err) continue } if !minModTime.IsZero() && object.LastModified.Before(minModTime) { continue }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 6.3K bytes - Click Count (0) -
callbacks/delete.go
return } for column, v := range selectColumns { if !v { continue } rel, ok := db.Statement.Schema.Relationships.Relations[column] if !ok { continue } switch rel.Type { case schema.HasOne, schema.HasMany: queryConds := rel.ToQueryConditions(db.Statement.Context, db.Statement.ReflectValue) modelValue := reflect.New(rel.FieldSchema.ModelType).Interface()Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 5.8K bytes - Click Count (0) -
cmd/endpoint_test.go
} for i, test := range testCases { t.Run(fmt.Sprint("case-", i), func(t *testing.T) { endpoint, err := NewEndpoint(test.arg) if err == nil { err = endpoint.UpdateIsLocal() } switch { case test.expectedErr == nil: if err != nil { t.Errorf("error: expected = <nil>, got = %v", err) } case err == nil: t.Errorf("error: expected = %v, got = <nil>", test.expectedErr)Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 18.9K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/UUID.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java
command = SMB_COM_TREE_CONNECT_ANDX; } @Override int getBatchLimit(final byte command) { final int c = command & 0xFF; // why isn't this just return batchLimits[c]? switch (c) { case SMB_COM_CHECK_DIRECTORY: return batchLimits[0]; case SMB_COM_CREATE_DIRECTORY: return batchLimits[2]; case SMB_COM_DELETE: return batchLimits[3];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 6.6K bytes - Click Count (0) -
internal/config/heal/heal.go
}, } const minimumBitrotCycleInMonths = 1 func parseBitrotConfig(s string) (time.Duration, error) { // Try to parse as a boolean enabled, err := config.ParseBool(s) if err == nil { switch enabled { case true: return 0, nil case false: return -1, nil } } // Try to parse as a number of months if !strings.HasSuffix(s, "m") { return -1, errors.New("unknown format")
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 04 19:06:02 GMT 2024 - 4.9K bytes - Click Count (0) -
internal/crypto/sse.go
// indicate that some form server-side encryption is requested. // // If no SSE headers are present then IsRequested returns false // and no Type. func IsRequested(h http.Header) (Type, bool) { switch { case S3.IsRequested(h): return S3, true case S3KMS.IsRequested(h): return S3KMS, true case SSEC.IsRequested(h): return SSEC, true default: return nil, false } }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.3K bytes - Click Count (0)