Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for value (0.14 sec)

  1. internal/s3select/sql/value.go

    func FromBool(b bool) *Value {
    	return &Value{value: b}
    }
    
    // FromTimestamp creates a Value from a timestamp
    func FromTimestamp(t time.Time) *Value {
    	return &Value{value: t}
    }
    
    // FromNull creates a Value with Null value
    func FromNull() *Value {
    	return &Value{value: nil}
    }
    
    // FromMissing creates a Value with Missing value
    func FromMissing() *Value {
    	return &Value{value: Missing{}}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  2. internal/s3select/sql/value_test.go

    // valueBuilders contains one constructor for each value type.
    // Values should match if type is the same.
    var valueBuilders = []func() *Value{
    	FromNull,
    	func() *Value {
    		return FromBool(true)
    	},
    	func() *Value {
    		return FromBytes([]byte("byte contents"))
    	},
    	func() *Value {
    		return FromFloat(math.Pi)
    	},
    	func() *Value {
    		return FromInt(0x1337)
    	},
    	func() *Value {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  3. internal/logger/config.go

    		},
    		config.KV{
    			Key:   ClientCert,
    			Value: "",
    		},
    		config.KV{
    			Key:   ClientKey,
    			Value: "",
    		},
    		config.KV{
    			Key:   Proxy,
    			Value: "",
    		},
    		config.KV{
    			Key:   BatchSize,
    			Value: "1",
    		},
    		config.KV{
    			Key:   QueueSize,
    			Value: "100000",
    		},
    		config.KV{
    			Key:   QueueDir,
    			Value: "",
    		},
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  4. internal/hash/checksum.go

    func NewChecksumWithType(alg ChecksumType, value string) *Checksum {
    	if !alg.IsSet() {
    		return nil
    	}
    	bvalue, err := base64.StdEncoding.DecodeString(value)
    	if err != nil {
    		return nil
    	}
    	c := Checksum{Type: alg, Encoded: value, Raw: bvalue}
    	if !c.Valid() {
    		return nil
    	}
    	return &c
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. internal/grid/types.go

    func NewURLValuesWith(values map[string][]string) *URLValues {
    	u := URLValues(values)
    	return &u
    }
    
    // Values returns the url.Values.
    // If u is nil, an empty url.Values is returned.
    // The values are a shallow copy of the underlying map.
    func (u *URLValues) Values() url.Values {
    	if u == nil {
    		return url.Values{}
    	}
    	return url.Values(*u)
    }
    
    // Recycle the underlying map.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 01 23:42:09 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. internal/config/identity/openid/openid.go

    			Value: "",
    		},
    		config.KV{
    			Key:   RolePolicy,
    			Value: "",
    		},
    		config.KV{
    			Key:   ClaimPrefix,
    			Value: "",
    		},
    		config.KV{
    			Key:   RedirectURI,
    			Value: "",
    		},
    		config.KV{
    			Key:   RedirectURIDynamic,
    			Value: "off",
    		},
    		config.KV{
    			Key:   Scopes,
    			Value: "",
    		},
    		config.KV{
    			Key:   Vendor,
    			Value: "",
    		},
    		config.KV{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  7. internal/jwt/parser.go

    func NewMapClaims() *MapClaims {
    	return &MapClaims{MapClaims: jwtgo.MapClaims{}}
    }
    
    // Lookup returns the value and if the key is found.
    func (c *MapClaims) Lookup(key string) (value string, ok bool) {
    	if c == nil {
    		return "", false
    	}
    	var vinterface interface{}
    	vinterface, ok = c.MapClaims[key]
    	if ok {
    		value, ok = vinterface.(string)
    	}
    	return
    }
    
    // SetExpiry sets expiry in unix epoch secs
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  8. cmd/metrics.go

    	for api, value := range httpStats.CurrentS3Requests.APIStats {
    		ch <- prometheus.MustNewConstMetric(
    			prometheus.NewDesc(
    				prometheus.BuildFQName(s3Namespace, "requests", "current"),
    				"Total number of running s3 requests in current MinIO server instance",
    				[]string{"api"}, nil),
    			prometheus.CounterValue,
    			float64(value),
    			api,
    		)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  9. cmd/batch-job-common-types_gen.go

    		switch msgp.UnsafeString(field) {
    		case "Key":
    			z.Key, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Key")
    				return
    			}
    		case "Value":
    			z.Value, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Value")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	return
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  10. cmd/xl-storage-disk-id-check.go

    	cached    atomic.Pointer[AccElem]
    	mu        sync.Mutex
    	init      sync.Once
    	lastMinuteLatency
    }
    
    func (e *lockedLastMinuteLatency) add(value time.Duration) {
    	e.addSize(value, 0)
    }
    
    // addSize will add a duration and size.
    func (e *lockedLastMinuteLatency) addSize(value time.Duration, sz int64) {
    	// alloc on every call, so we have a clean entry to swap in.
    	t := time.Now().Unix()
    	e.init.Do(func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
Back to top