Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLConfig ¶
type MySQLConfig struct {
Host string `json:"host"`
Port uint16 `json:"port"`
User string `json:"user"`
Password string `json:"password"`
Database string `json:"database"`
}
func (MySQLConfig) DSN ¶
func (conf MySQLConfig) DSN() string
func (MySQLConfig) Validate ¶
func (conf MySQLConfig) Validate() error
type ServerConfig ¶
type ServerConfig struct {
Port uint16 `json:"port"`
MySQL MySQLConfig `json:"mysql"`
}
func (ServerConfig) Address ¶
func (conf ServerConfig) Address() string
func (ServerConfig) Validate ¶
func (conf ServerConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.