Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvProd = "prod" EnvTest = "test" EnvDev = "dev" )
View Source
const ( BaseConfigFile = "app.toml" DefaultHttpPort = 9500 DefaultAppName = "community-metadata" DefaultInterval = 60 DefaultSyncChannelSize = 100 )
Variables ¶
View Source
var ( //App name Name string //Debug mode Debug bool //Current host name Hostname string //App port listen to HttpPort = DefaultHttpPort //Env name EnvName = EnvDev //App git info GitInfo AppInfo )
View Source
var (
Config *config.Config
)
View Source
var Logger *zap.Logger
logger instance
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.