Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Pool []Item `yaml:"postgresql"`
}
Config pool of configs
func (*Config) List ¶
func (c *Config) List() (list []schema.ItemInterface)
List getting all configs
type Item ¶
type Item struct { Name string `yaml:"name"` Host string `yaml:"host"` Port int `yaml:"port"` Schema string `yaml:"schema"` User string `yaml:"user"` Password string `yaml:"password"` SSLMode bool `yaml:"sslmode"` AppName string `yaml:"app_name"` Charset string `yaml:"charset"` MaxIdleConn int `yaml:"maxidleconn"` MaxOpenConn int `yaml:"maxopenconn"` MaxConnTTL time.Duration `yaml:"maxconnttl"` Timeout time.Duration `yaml:"timeout"` OtherParams string `yaml:"other_params"` }
Item config model
func (Item) Setup ¶
func (i Item) Setup(s schema.SetupInterface)
Setup setting config conntections params
Click to show internal directories.
Click to hide internal directories.