Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "MYSQL"
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticator ¶
func NewAuthenticator(ctx context.Context) (statistic.Authenticator, error)
Types ¶
type Authenticator ¶
type Authenticator struct { *memory.Authenticator // contains filtered or unexported fields }
type Config ¶
type Config struct {
MySQL MySQLConfig `json:"mysql" yaml:"mysql"`
}
type MySQLConfig ¶
type MySQLConfig struct { Enabled bool `json:"enabled" yaml:"enabled"` ServerHost string `json:"server_addr" yaml:"server-addr"` ServerPort int `json:"server_port" yaml:"server-port"` Database string `json:"database" yaml:"database"` Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` CheckRate int `json:"check_rate" yaml:"check-rate"` }
Click to show internal directories.
Click to hide internal directories.