func NewConfig() Config { return Config{ MaxWALSize: DefaultMaxWALSize, WALFlushInterval: toml.Duration(DefaultWALFlushInterval), WALPartitionFlushDelay: toml.Duration(DefaultWALPartitionFlushDelay), } }
// NewConfig returns an instance of Config with defaults. func NewConfig() Config { return Config{ WriteTimeout: toml.Duration(DefaultWriteTimeout), ShardWriterTimeout: toml.Duration(DefaultShardWriterTimeout), ShardMapperTimeout: toml.Duration(DefaultShardMapperTimeout), } }
func NewConfig() Config { return Config{ Enabled: true, MaxSize: DefaultMaxSize, MaxAge: toml.Duration(DefaultMaxAge), RetryRateLimit: DefaultRetryRateLimit, RetryInterval: toml.Duration(DefaultRetryInterval), } }
func NewConfig() Config { return Config{ Hostname: DefaultHostname, BindAddress: DefaultBindAddress, RetentionAutoCreate: true, ElectionTimeout: toml.Duration(DefaultElectionTimeout), HeartbeatTimeout: toml.Duration(DefaultHeartbeatTimeout), LeaderLeaseTimeout: toml.Duration(DefaultLeaderLeaseTimeout), CommitTimeout: toml.Duration(DefaultCommitTimeout), } }
func NewConfig() Config { return Config{Enabled: true, CheckInterval: toml.Duration(10 * time.Minute)} }