mysqlext

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configs

type Configs struct {
	MySQLHosts    string      `env:"MYSQL_HOSTS,required"`
	MySQLPort     netext.Port `env:"MYSQL_PORT" envDefault:"3306"`
	MySQLUsername string      `env:"MYSQL_USERNAME,required"`
	MySQLPassword string      `env:"MYSQL_PASSWORD,required"`
	MySQLDBName   string      `env:"MYSQL_DBNAME,required"`
}

func (Configs) DB

func (Configs) DB() string

func (Configs) DSN

func (c Configs) DSN() string

Jump to

Keyboard shortcuts

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