config

package
v0.0.0-...-4e2f7e4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGlobalConfig

func InitGlobalConfig(filepath string) error

Types

type Config

type Config struct {
	Core *CoreConfig `toml:"core"`
	Log  *LogConfig  `toml:"log"`
}

func GetGlobalConfig

func GetGlobalConfig() *Config

func LoadConfig

func LoadConfig(filepath string) (*Config, error)

type CoreConfig

type CoreConfig struct {
	ListenAddress string `toml:"listen_address"`
}

type LogConfig

type LogConfig struct {
	LogDir string `toml:"log_dir"`
}

Jump to

Keyboard shortcuts

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