Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 1,351 for setB (0.02 seconds)

  1. internal/once/singleton.go

    // Until the value is set all Get() calls will block.
    type Singleton[T any] struct {
    	v   *T
    	set chan struct{}
    }
    
    // NewSingleton creates a new unset singleton.
    func NewSingleton[T any]() *Singleton[T] {
    	return &Singleton[T]{set: make(chan struct{}), v: nil}
    }
    
    // Get will return the singleton value.
    func (s *Singleton[T]) Get() *T {
    	<-s.set
    	return s.v
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Aug 15 12:04:40 GMT 2024
    - 952 bytes
    - Click Count (0)
  2. cmd/metrics-v3-system-memory.go

    		metricsLogIf(ctx, err)
    		return err
    	}
    
    	m.Set(memTotal, float64(memMetrics.Total))
    	m.Set(memUsed, float64(memMetrics.Used))
    	usedPerc := float64(memMetrics.Used) * 100 / float64(memMetrics.Total)
    	m.Set(memUsedPerc, usedPerc)
    	m.Set(memFree, float64(memMetrics.Free))
    	m.Set(memBuffers, float64(memMetrics.Buffers))
    	m.Set(memCache, float64(memMetrics.Cache))
    	m.Set(memShared, float64(memMetrics.Shared))
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 17 05:10:25 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  3. tests/association_generics_test.go

    	// Test Set + Update with Association OpCreate
    	assocOp := clause.Association{
    		Association: "Pets",
    		Type:        clause.OpCreate,
    		Set: []clause.Assignment{
    			{Column: clause.Column{Name: "name"}, Value: "new-pet"},
    		},
    	}
    
    	rows, err := gorm.G[User](DB).Where("id = ?", user.ID).Set(assocOp).Update(ctx)
    	if err != nil {
    		t.Fatalf("Set Update with association failed: %v", err)
    	}
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Sep 12 05:42:26 GMT 2025
    - 37.9K bytes
    - Click Count (0)
  4. internal/config/api/help.go

    	Help = config.HelpKVS{
    		config.HelpKV{
    			Key:         apiRequestsMax,
    			Description: `set the maximum number of concurrent requests (default: auto)`,
    			Optional:    true,
    			Type:        "number",
    		},
    		config.HelpKV{
    			Key:         apiClusterDeadline,
    			Description: `set the deadline for cluster readiness check` + defaultHelpPostfix(apiClusterDeadline),
    			Optional:    true,
    			Type:        "duration",
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 16 08:43:49 GMT 2024
    - 4.4K bytes
    - Click Count (0)
  5. apache-maven/src/main/appended-resources/META-INF/LICENSE.vm

    #*      *##set ( $spdx = 'BSD-3-Clause' )
    #*    *##elseif ( $license.name == "Public Domain" )
    #*      *##set ( $spdx = 'Public-Domain' )
    #*    *##elseif ( $license.name == "CDDL + GPLv2 with classpath exception" )
    #*      *##set ( $spdx = 'CDDL+GPLv2-with-classpath-exception' )
    #*    *##else
    #*      *### unrecognized license will require analysis to know obligations
    #*      *##set ( $spdx = $license )
    #*    *##end
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  6. cmd/metrics-v3-api.go

    	// Currently we only collect S3 API related stats, so we set the "type"
    	// label to "s3".
    
    	m.Set(apiRejectedAuthTotal, float64(httpStats.TotalS3RejectedAuth), "type", "s3")
    	m.Set(apiRejectedTimestampTotal, float64(httpStats.TotalS3RejectedTime), "type", "s3")
    	m.Set(apiRejectedHeaderTotal, float64(httpStats.TotalS3RejectedHeader), "type", "s3")
    	m.Set(apiRejectedInvalidTotal, float64(httpStats.TotalS3RejectedInvalid), "type", "s3")
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Sep 24 17:13:00 GMT 2024
    - 9.4K bytes
    - Click Count (0)
  7. docs/config/README.md

    ARGS:
    requests_max                    (number)    set the maximum number of concurrent requests (default: 'auto')
    cluster_deadline                (duration)  set the deadline for cluster readiness check (default: '10s')
    cors_allow_origin               (csv)       set comma separated list of origins allowed for CORS requests (default: '*')
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 18.1K bytes
    - Click Count (1)
  8. internal/bucket/lifecycle/expiration.go

    		return errXMLNotWellFormed
    	}
    
    	// Both expiration days and date are specified
    	if !e.IsDaysNull() && !e.IsDateNull() {
    		return errLifecycleInvalidExpiration
    	}
    
    	// DeleteAll set without expiration days
    	if e.DeleteAll.set && e.IsDaysNull() {
    		return errLifecycleInvalidDeleteAll
    	}
    
    	return nil
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  9. cmd/metrics-v3-bucket-replication.go

    					m.Set(bucketReplLastHrFailedBytes, float64(stat.Failed.LastHour.Bytes), labels...)
    					m.Set(bucketReplLastHrFailedCount, float64(stat.Failed.LastHour.Count), labels...)
    					m.Set(bucketReplLastMinFailedBytes, float64(stat.Failed.LastMinute.Bytes), labels...)
    					m.Set(bucketReplLastMinFailedCount, float64(stat.Failed.LastMinute.Count), labels...)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Jun 04 20:45:31 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  10. cmd/postpolicyform_test.go

    	defaultFormVals := newFormValues()
    	defaultFormVals.Set("Bucket", "testbucket")
    	defaultFormVals.Set("Content-Type", "image/jpeg")
    	defaultFormVals.Set(xhttp.AmzMetaUUID, "14365123651274")
    	defaultFormVals.Set("Key", "user/user1/filename/${filename}/myfile.txt")
    	defaultFormVals.Set("X-Amz-Credential", "KVGKMDUQ23TCZXTLTHLP/20160727/us-east-1/s3/aws4_request")
    	defaultFormVals.Set("X-Amz-Algorithm", "AWS4-HMAC-SHA256")
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12.3K bytes
    - Click Count (0)
Back to Top