config

package
v0.0.0-...-675be24 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	APPPORT  = "APPPORT"
	LOGLEVEL = "LOGLEVEL"
)
View Source
const (
	DBNAME     = "DBNAME"
	DBADDR     = "DBADDR"
	DBPORT     = "DBPORT"
	DBUSER     = "DBUSER"
	DBPASSWORD = "DBPASSWORD"
)

Variables

This section is empty.

Functions

func GetLogLevel

func GetLogLevel() string

func GetPort

func GetPort() string

func IsProd

func IsProd() bool

Types

type PgConfig

type PgConfig struct {
	Addr     string `json:"addr"`
	Port     int    `json:"port"`
	Username string `json:"username"`
	Name     string `json:"name"`
	Password string `json:"password"`
}

func PgConnectConfig

func PgConnectConfig() *PgConfig

Jump to

Keyboard shortcuts

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