config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HashSalt string
)

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	ServerHost        string `json:"server_host"`
	ServerPort        int    `json:"server_port"`
	AutoMigrate       bool   `json:"auto_migrate"`
	PgUser            string `json:"pg_user"`
	PgPass            string `json:"pg_pass"`
	PgHost            string `json:"pg_host"`
	PgName            string `json:"pg_name"`
	PgPort            string `json:"pg_port"`
	PgDebug           bool   `json:"pg_debug"`
	PgLogger          bool   `json:"pg_logger"`
	PgMaxIdleConns    int    `json:"pg_max_idle_conns"`
	PgMaxOpenConns    int    `json:"pg_max_open_conns"`
	PgConnMaxLifeTime int    `json:"pg_conn_max_life_time"`
	HashSalt          string `json:"hash_salt"`
}

func ReadConfig

func ReadConfig() (conf *AppConfig, err error)

Jump to

Keyboard shortcuts

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