Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DatabaseConfig ¶
type DatabaseConfig struct { // Mandatory Connection Info Host string `yaml:"host"` // For IPv6, use the format of [::] Port uint16 `yaml:"port"` Database string `yaml:"database"` User string `yaml:"user"` Passwd string `yaml:"passwd"` // Optional Connection Info CA string `yaml:"ca_cert"` // Required by ClientKey & ClientCert ClientKey string `yaml:"client_key"` // Required by ClientCert ClientCert string `yaml:"client_cert"` // Required by ClientKey // Other MySQL Info MysqlAutoCommit bool `yaml:"auto_commit"` // Table Prefix TblPrefix string `yaml:"table_prefix"` // If unset, use default: "ulys_". }
type MysqlConnector ¶
type MysqlConnector struct {
// contains filtered or unexported fields
}
MysqlConnect is a STATELESS struct used to generate new MySQL connections
func NewMysqlConnector ¶
func NewMysqlConnector(conf DatabaseConfig) *MysqlConnector
NewMysqlConnector returns a valid pointer to a MysqlConnector struct when conf is valid (able to establish mysql connections)
Click to show internal directories.
Click to hide internal directories.