config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBHost

func GetDBHost() string

func GetDBName

func GetDBName() string

func GetDBTableName

func GetDBTableName() string

func GetDataPath

func GetDataPath() string

func GetEnv

func GetEnv() string

func GetPort

func GetPort() string

func GetStorageEngine

func GetStorageEngine() string

func IsDebug

func IsDebug() bool

Types

type Env

type Env struct {
	DEBUG          bool   `env:"DEBUG"`
	ENV            string `env:"ENV"`
	DBNAME         string `env:"DBNAME"`
	DBTABLENAME    string `env:"DBTABLENAME"`
	DATAPATH       string `env:"DATAPATH"`
	STORAGE_ENGINE string `env:"STORAGE_ENGINE"`
	PORT           string `env:"PORT"`
	DBHOUST        string `env:"DBHOST"`
}

Jump to

Keyboard shortcuts

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