- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,334 for Bool (0.19 sec)
-
internal/config/bool-flag.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package config import ( "encoding/json" "fmt" "strconv" "strings" ) // BoolFlag - wrapper bool type. type BoolFlag bool // String - returns string of BoolFlag. func (bf BoolFlag) String() string { if bf { return "on" } return "off" } // MarshalJSON - converts BoolFlag into JSON data.
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Apr 07 15:10:40 GMT 2022 - 2.3K bytes - Viewed (0) -
internal/config/bool-flag_test.go
} } } // Test BoolFlag.UnmarshalJSON() func TestBoolFlagUnmarshalJSON(t *testing.T) { testCases := []struct { data []byte expectedResult BoolFlag expectedErr bool }{ {[]byte(`{}`), BoolFlag(false), true}, {[]byte(`["on"]`), BoolFlag(false), true}, {[]byte(`"junk"`), BoolFlag(false), true}, {[]byte(`""`), BoolFlag(true), false}, {[]byte(`"on"`), BoolFlag(true), false},
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 3.5K bytes - Viewed (0) -
tests/test_additional_properties_bool.py
Sebastián RamÃrez <******@****.***> 1688749933 +0200
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 4.2K bytes - Viewed (0) -
cmd/object-api-interface.go
LockEnabled bool VersioningEnabled bool ForceCreate bool // Create buckets even if they are already created. CreatedAt time.Time // only for site replication NoLock bool // does not lock the make bucket call if set to 'true' } // DeleteBucketOptions provides options for DeleteBucket calls. type DeleteBucketOptions struct {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Sat Apr 20 09:05:54 GMT 2024 - 16.9K bytes - Viewed (0) -
cmd/erasure-server-pool-decom.go
CmdLine: pool.endpoints.CmdLine, ID: idx, LastUpdate: UTCNow(), }) } return newMeta } func (z *erasureServerPools) IsDecommissionRunning() bool { z.poolMetaMutex.RLock() defer z.poolMetaMutex.RUnlock() meta := z.poolMeta for _, pool := range meta.Pools { if pool.Decommission != nil && !pool.Decommission.Complete && !pool.Decommission.Failed && !pool.Decommission.Canceled {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Apr 22 17:49:30 GMT 2024 - 41.3K bytes - Viewed (1) -
gorm.go
type Session struct { DryRun bool PrepareStmt bool NewDB bool Initialized bool SkipHooks bool SkipDefaultTransaction bool DisableNestedTransaction bool AllowGlobalUpdate bool FullSaveAssociations bool QueryFields bool Context context.Context
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Sun Aug 20 11:46:56 GMT 2023 - 11.6K bytes - Viewed (0) -
tests/helper_test.go
"strconv" "strings" "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) type Config struct { Account bool Pets int Toys int Company bool Manager bool Team int Languages int Friends int NamedPet bool Tools int } func GetUser(name string, config Config) *User { var ( birthday = time.Now().Round(time.Second) user = User{
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Tue Mar 19 03:50:28 GMT 2024 - 8K bytes - Viewed (0) -
api/go1.18.txt
pkg net/netip, method (Addr) Is4() bool pkg net/netip, method (Addr) Is4In6() bool pkg net/netip, method (Addr) Is6() bool pkg net/netip, method (Addr) IsGlobalUnicast() bool pkg net/netip, method (Addr) IsInterfaceLocalMulticast() bool pkg net/netip, method (Addr) IsLinkLocalMulticast() bool pkg net/netip, method (Addr) IsLinkLocalUnicast() bool pkg net/netip, method (Addr) IsLoopback() bool
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Feb 17 20:31:46 GMT 2023 - 13K bytes - Viewed (0) -
cmd/erasure-server-pool.go
for _, pool := range pools { if opts.SkipDecommissioned && z.IsSuspended(pool.Index) { continue } // Skip object if it's from pools participating in a rebalance operation. if opts.SkipRebalancing && z.IsPoolRebalancing(pool.Index) { continue } if isErrReadQuorum(pool.Err) || pool.Err == nil { errs = append(errs, poolErrs{Err: pool.Err, Index: pool.Index}) } }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Apr 26 06:32:14 GMT 2024 - 80.1K bytes - Viewed (0) -
cmd/erasure-server-pool-rebalance.go
) //go:generate msgp -file $GOFILE -unexported // rebalanceStats contains per-pool rebalance statistics like number of objects, // versions and bytes rebalanced out of a pool type rebalanceStats struct { InitFreeSpace uint64 `json:"initFreeSpace" msg:"ifs"` // Pool free space at the start of rebalance InitCapacity uint64 `json:"initCapacity" msg:"ic"` // Pool capacity at the start of rebalance
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Apr 26 19:29:28 GMT 2024 - 27.2K bytes - Viewed (0)