Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresConfig ¶
type PostgresConfig struct { Host string `yaml:"host" json:"host"` Port uint16 `yaml:"port" json:"port"` Username string `yaml:"username" json:"username"` Password string `yaml:"password" json:"password"` Database string `yaml:"database" json:"database"` Driver string `yaml:"driver" json:"driver"` }
PostgresConfig holds the postgres connection parameters
func (*PostgresConfig) ConnectionString ¶
func (c *PostgresConfig) ConnectionString() string
ConnectionString prepares the connection string from configuration
func (*PostgresConfig) DriverName ¶
func (c *PostgresConfig) DriverName() string
DriverName returns the driver name
Click to show internal directories.
Click to hide internal directories.