Documentation ¶
Index ¶
- type TreeConfig
- func (c TreeConfig) AuthorizedKeys() keys.PublicKeys
- func (c TreeConfig) CacheSize() int
- func (c TreeConfig) Enabled() bool
- func (c TreeConfig) ReplicationChannelCapacity() int
- func (c TreeConfig) ReplicationTimeout() time.Duration
- func (c TreeConfig) ReplicationWorkerCount() int
- func (c TreeConfig) SyncInterval() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TreeConfig ¶
type TreeConfig struct {
// contains filtered or unexported fields
}
TreeConfig is a wrapper over "tree" config section which provides access to the configuration of the tree service.
func Tree ¶
func Tree(c *config.Config) TreeConfig
Tree returns structure that provides access to a "tree" configuration subsection.
func (TreeConfig) AuthorizedKeys ¶ added in v0.37.0
func (c TreeConfig) AuthorizedKeys() keys.PublicKeys
AuthorizedKeys parses and returns an array of "authorized_keys" config parameter from "tree" section.
Returns an empty list if not set.
func (TreeConfig) CacheSize ¶
func (c TreeConfig) CacheSize() int
CacheSize returns the value of "cache_size" config parameter from the "tree" section.
Returns `0` if config value is not specified.
func (TreeConfig) Enabled ¶
func (c TreeConfig) Enabled() bool
Enabled returns the value of "enabled" config parameter from the "tree" section.
Returns `false` if config value is not specified.
func (TreeConfig) ReplicationChannelCapacity ¶
func (c TreeConfig) ReplicationChannelCapacity() int
ReplicationChannelCapacity returns the value of "replication_channel_capacity" config parameter from the "tree" section.
Returns `0` if config value is not specified.
func (TreeConfig) ReplicationTimeout ¶
func (c TreeConfig) ReplicationTimeout() time.Duration
ReplicationTimeout returns the value of "replication_timeout" config parameter from the "tree" section.
Returns `0` if config value is not specified.
func (TreeConfig) ReplicationWorkerCount ¶
func (c TreeConfig) ReplicationWorkerCount() int
ReplicationWorkerCount returns the value of "replication_worker_count" config parameter from the "tree" section.
Returns `0` if config value is not specified.
func (TreeConfig) SyncInterval ¶
func (c TreeConfig) SyncInterval() time.Duration
SyncInterval returns the value of "sync_interval" config parameter from the "tree" section.
Returns 0 if config value is not specified.