config

package
v0.0.0-...-d48a1cd Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Listen             string `toml:"listen"`
	SnapshotPath       string `toml:"snapshot_path"`
	AuthToken          string `toml:"auth_token"`
	DefaultPoolMaxSize int    `toml:"default_pool_max_size"`
	MetricsPrefix      string `toml:"metrics_prefix"`
	Pool               map[string]*ConfigPool
}

func NewConfig

func NewConfig() *Config

func (*Config) GetPoolMaxSize

func (cfg *Config) GetPoolMaxSize(pool string) int

type ConfigPool

type ConfigPool struct {
	MaxSize int `toml:"max_size"`
}

Jump to

Keyboard shortcuts

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