mysql

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDatasource

func InitDatasource(f func(config DataSource, db *sql.DB))

func InitGormDatasource

func InitGormDatasource()

Types

type DataSource added in v1.0.3

type DataSource struct {
	Type     string          `yaml:"type"`
	URL      string          `yaml:"url"`
	Database string          `yaml:"database"`
	Tag      string          `yaml:"tag"`
	Username string          `yaml:"username"`
	Password string          `yaml:"password"`
	UseSSH   bool            `yaml:"use_ssh"`
	LogLevel logger.LogLevel `yaml:"log_level"`
}

Jump to

Keyboard shortcuts

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