Documentation ¶
Overview ¶
Package config contents type and methods for server and client configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerConfig ¶
LoggerConfig return log level according debug flag
Types ¶
type Config ¶
type Config struct { DBdsn string ServerAddr string ServerKey []byte UserKey string TokenCache string // path to file with cli user token LogLevel zapcore.Level }
Config is general type for server and client configuration
func NewServerConf ¶
NewServerConf generates server configuration according flags
Click to show internal directories.
Click to hide internal directories.