treeconfig

package
v0.44.0-rc.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL