Documentation ¶
Index ¶
Constants ¶
View Source
const (
AppConfigContextVar = "app.config"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CfgLogLevel ¶
func (*CfgLogLevel) UnmarshalText ¶
func (d *CfgLogLevel) UnmarshalText(data []byte) (err error)
type Config ¶
func (*Config) SetDefaults ¶
SetDefaults applies default values to config structure.
type Etcd ¶
type Etcd struct { // NoServer suppresses startup of etcd server NoServer bool `yaml:"no-server"` // StorageDir indicates where to save the etcd data StorageDir string `yaml:"storage-dir"` MinConnections int64 MaxConnections int64 Name *string `yaml:"name"` InitialCluster *string `yaml:"initial-cluster"` InitialClusterToken *string `yaml:"initial-cluster-token"` ClusterState *string `yaml:"initial-cluster-state"` Client ServingInfo `yaml:"client"` Peer ServingInfo `yaml:"peer"` AdvertiseClient EtcdURLs `yaml:"advertise-client"` AdvertisePeer EtcdURLs `yaml:"advertise-peer"` Discovery EtcdDiscovery `yaml:",inline"` }
type EtcdDiscovery ¶
type Logging ¶
type Logging struct { Level CfgLogLevel DisableColors bool DisableTimestamp bool FullTimestamp bool DisableSorting bool }
type SecurityConfig ¶
type ServingInfo ¶
type ServingInfo struct { EtcdURLs `yaml:",inline"` SecurityConfig `yaml:",inline"` }
type Storage ¶
type Storage struct { // SyncPool specifies the number of concurrent processes synchronization chunks from other servers. SyncPool int // Driver Driver StorageDriver // CleanupPeriod sets time period between cleanup iterations. CleanupPeriod time.Duration `yaml:"cleanup-period"` }
type StorageDriver ¶
type StorageDriver map[string]storage.StorageDriverParameters
func (StorageDriver) Name ¶
func (s StorageDriver) Name() string
func (StorageDriver) Parameters ¶
func (s StorageDriver) Parameters() storage.StorageDriverParameters
type Topic ¶
type Topic struct { // AllowTopicsCreation enables auto creation of topic on the server AllowTopicsCreation bool `yaml:"allow-topics-creation"` // WriteConcern describes the number of groups, which should confirm write of each block. // This value should not be more than the number of nodes in the cluster. WriteConcern int64 `yaml:"write-concern"` // MessageRetentionPeriod defines the maximum time we will retain a message. MessageRetentionPeriod time.Duration `yaml:"message-retention-period"` // PartitionSize defines maximum partition size. MaxPartitionSize int64 `yaml:"max-partition-size"` // MaxMessageSize defines maximum size of incoming message. Set 0 to disable. MaxMessageSize int64 `yaml:"max-message-size"` // ChunkSize defines maximum size of a block on which is divided the incoming message. MaxChunkSize int64 `yaml:"max-chunk-size"` // CleanupPeriod sets time period between cleanup iterations. CleanupPeriod time.Duration `yaml:"cleanup-period"` }
Click to show internal directories.
Click to hide internal directories.