config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigurationFilePath = "config/config.yml"
)

Variables

View Source
var (
	ErrConfigNotLoaded = errors.New("configuration is nil")
)

Functions

func Load

func Load(configFile string) error

Types

type Config

type Config struct {
	AllowRegistrations bool             `mapstructure:"registration"`
	Database           *database.Config `mapstructure:"database"`
	Logging            *logging.Config  `mapstructure:"logging"`
	Telegram           *telegram.Config `mapstructure:"telegram"`
}

func Get

func Get() *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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