Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigDir = "/etc/beskar" BeskarConfigFile = "beskar.yaml" )
View Source
const ( DefaultSyncTimeout = time.Hour DefaultSyncMaxWorkerCount = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeskarConfig ¶
type BeskarConfig struct { Version string `yaml:"version"` Profiling bool `yaml:"profiling"` Hostname string `yaml:"hostname"` Cache Cache `yaml:"cache"` Gossip gossip.Config `yaml:"gossip"` Registry *configuration.Configuration `yaml:"registry"` Router Router `yaml:"router"` }
func ParseBeskarConfig ¶
func ParseBeskarConfig(dir string) (*BeskarConfig, error)
type BeskarConfigV1 ¶
type BeskarConfigV1 BeskarConfig
type SyncConfig ¶ added in v0.0.27
type SyncConfig struct { Timeout time.Duration `yaml:"timeout"` MaxWorkerCount int `yaml:"max_worker_count"` }
func (*SyncConfig) GetMaxWorkerCount ¶ added in v0.0.27
func (sc *SyncConfig) GetMaxWorkerCount() int
func (*SyncConfig) GetTimeout ¶ added in v0.0.27
func (sc *SyncConfig) GetTimeout() time.Duration
Click to show internal directories.
Click to hide internal directories.