config

package
v0.0.0-...-823433a Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 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 Settings

type Settings struct {
	Host     string                       `yaml:"host"`
	Port     string                       `yaml:"port"`
	ConnTTl  int                          `yaml:"conn_ttl"`
	LogLevel string                       `yaml:"log_level"`
	Store    map[string]map[string]string `yaml:"storage"`
}

func New

func New(confPath string) (Settings, error)

func (*Settings) GetEmptyConnTTL

func (s *Settings) GetEmptyConnTTL() time.Duration

func (*Settings) GetListenAddress

func (s *Settings) GetListenAddress() string

func (*Settings) GetLogLevel

func (s *Settings) GetLogLevel() log.Level

Jump to

Keyboard shortcuts

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