mysql

package
v0.0.0-...-cb53757 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

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"`
	Key        string `json:"key" yaml:"key"`
	Cert       string `json:"cert" yaml:"cert"`
	CA         string `json:"ca" yaml:"ca"`
	CheckRate  int    `json:"check_rate" yaml:"check-rate"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL