Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_MYSQL_MAX_ATTEMPTS = 5 // Default number of attempts to connect to mysql DEFAULT_MYSQL_ATTEMPT_INTERVAL = 5 * time.Second // Time between attempts )
View Source
const ( DefaultPort = "3306" DefaultHost = "localhost" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { IsConnected bool Logger *log.Logger Config *Config // contains filtered or unexported fields }
func DefaultAdapter ¶
func DefaultAdapter() *Adapter
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) GetInterval ¶
func (*Config) GetMaxAttempts ¶
func (*Config) SetMaxAttempts ¶
type Dsn ¶
type Dsn struct {
// contains filtered or unexported fields
}
func (*Dsn) SetDatabase ¶
func (*Dsn) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.