package
Version:
v0.0.0-...-8ad9259
Opens a new window with list of versions in this module.
Published: Sep 21, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Config(configName string) (cfg interface{})
Config function loads and returns the config based on `configName` parameter
type ClientConfig struct {
Version string `yaml:"version"`
Server struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Timeout time.Duration `yaml:"timeout"`
} `yaml:"server"`
Wal struct {
Datadir string `yaml:"datadir"`
} `yaml:"wal"`
}
ClientConfig client
type ServerConfig struct {
Server struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
DB string `yaml:"dbname"`
Timeout time.Duration `yaml:"timeout"`
} `yaml:"server"`
Wal struct {
Datadir string `yaml:"datadir"`
} `yaml:"wal"`
}
ServerConfig server
Source Files
¶
Click to show internal directories.
Click to hide internal directories.