config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogRollingConfig

func GetLogRollingConfig(filePath string) lumberjack.Logger

func GetZapcoreEncoderConfig

func GetZapcoreEncoderConfig() zapcore.EncoderConfig

func SetBuildConfig

func SetBuildConfig(version string, build string, buildDate string)

Types

type AppConfig

type AppConfig struct {
	AppEnv        string
	AppLogPath    string
	ServerHost    string
	ServerPort    string
	DbHost        string
	DbPort        string
	DbName        string
	DbUserName    string
	DbPassword    string
	RedisHost     string
	RedisPassword string
	RedisPort     string
	RedisDb       int
}

func GetAppConfig

func GetAppConfig() *AppConfig

type BuildConfig

type BuildConfig struct {
	Version  string
	CommitId string
	Date     string
}

func GetBuildConfig

func GetBuildConfig() BuildConfig

type ServerConfig

type ServerConfig struct {
	Host string
	Port string
}

func GetServerConfig

func GetServerConfig() *ServerConfig

Jump to

Keyboard shortcuts

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