mysql

package
v0.0.0-...-32ff608 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PluginType = "database"
	PluginName = "mysql"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN         string `yaml:"dsn"`
	MaxIdle     int    `yaml:"max_idle"`
	MaxOpen     int    `yaml:"max_open"`
	MaxLifetime int    `yaml:"max_lifetime"`
	DriverName  string `yaml:"driver_name"`
}

Config mysql proxy config

var PluginConfig Config

PluginConfig global mysql plugin configuration

type MysqlPlugin

type MysqlPlugin struct{}

MysqlPlugin load mysql plugin configuration

func (*MysqlPlugin) Setup

func (m *MysqlPlugin) Setup(name string, configDesc plugin.Decoder) (err error)

Setup setup config mysql connect configuration (integration with gorm)

func (*MysqlPlugin) Type

func (m *MysqlPlugin) Type() string

Type plugin type

Jump to

Keyboard shortcuts

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