Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBConnection ¶
NewDBConnection creates new connection to database
Types ¶
type DatabaseConfig ¶
type DatabaseConfig struct { Host string `mapstructure:"DB_HOST"` Port string `mapstructure:"DB_PORT"` UserName string `mapstructure:"DB_USERNAME"` Password string `mapstructure:"DB_PASSWORD"` Name string `mapstructure:"DB_NAME"` ConnectAttempts int `mapstructure:"DB_CONNECT_ATTEMPS"` }
DatabaseConfig configurations of database connection
func (DatabaseConfig) ToConnectionURL ¶
func (config DatabaseConfig) ToConnectionURL() string
Click to show internal directories.
Click to hide internal directories.