treeconfig

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: GPL-3.0 Imports: 1 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) 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.

Jump to

Keyboard shortcuts

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