gs

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBConfig

type DBConfig struct {
	//DATABASE
	DBHost string `env:"DB_HOST" envDefault:"localhost" json:"db_host"`
	DBPort string `env:"DB_PORT" envDefault:"27107" json:"db_port"`
	DBName string `env:"DB_NAME" json:"db_name"`
	DBUser string `env:"DB_USER" json:"db_user"`
	DBPass string `env:"DB_PASS" json:"db_pass"`
	DBSsl  string `env:"DB_SSL" json:"db_ssl"`
	DBTz   string `env:"TIME_ZONE" json:"db_tz"`

	//ETC
	EngineName string `env:"ENGINE_NAME" json:"engine_name,omitempty"`
}

DBConfig for database config

func (*DBConfig) Parse

func (this *DBConfig) Parse() (err error)

Parse for parse env variable to this struct

Jump to

Keyboard shortcuts

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