Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseConfig ¶
type DatabaseConfig struct { URL string `yaml:"url"` MaxOpenConnections int `yaml:"max_open_connections"` MaxIdleConnections int `yaml:"max_idle_connections"` SSLModeEnable string `yaml:"ssl_mode_enable"` SSLRootCert string `yaml:"ssl_root_cert"` SSLCert string `yaml:"ssl_cert"` SSLKey string `yaml:"ssl_key"` }
func DefaultDatabaseConfig ¶
func DefaultDatabaseConfig() DatabaseConfig
DefaultDatabaseConfig returns the default instance of DatabaseConfig
func NewDatabaseConfig ¶
func NewDatabaseConfig( url, sslModeEnable, sslRootCert, sslCert, sslKey string, maxOpenConnections int, maxIdleConnections int, ) DatabaseConfig
NewDatabaseConfig creates new DatabaseConfig instance
Click to show internal directories.
Click to hide internal directories.