Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
Database DatabaseConfig `yaml:"database"`
}
func LoadConfig ¶
type DatabaseConfig ¶
type ServerConfig ¶
type ServerConfig struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
ShutdownTimeout time.Duration `yaml:"shutdown_timeout"`
}
func (*ServerConfig) Addr ¶
func (s *ServerConfig) Addr() string
Click to show internal directories.
Click to hide internal directories.