Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPoolSize = 16
DefaultPoolSize defines the default size of MySQL connection pool.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `yaml:"host"` User string `yaml:"user"` Password string `yaml:"password"` Database string `yaml:"database"` PoolSize int `yaml:"pool_size"` }
Config represents MySQL storage configuration.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML satisfies Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.