mysql

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: GPL-3.0 Imports: 9 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"`
	DriverName string `json:"driver_name" yaml:"driver-name"`
	DataSource string `json:"data_source" yaml:"data-source"`
	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