treeconfig

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 2 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) 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 added in v0.36.0

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 added in v0.36.0

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