Documentation
¶
Overview ¶
Package config provide struct that are representatio of service configuration. Also it provide function MustLoad which load variable from ENV
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// PeerName string `env:"PEER_NAME"`
// PeerPort int `env:"PEER_PORT" env-default:"8001"`
LogLevel slog.Level `yaml:"log-level"`
WebSocket webSocket `yaml:"websocket"`
Explorer explorer `yaml:"explorer"`
IP *net.IP `yaml:"ip,omitempty"`
IsPublicIP bool `yaml:"is-public-ip"`
ConfigDir string `yaml:"-"`
HistoryDir string `yaml:"-"`
}
Click to show internal directories.
Click to hide internal directories.