app

package
v0.0.0-...-519dc3d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvProd = "prod"
	EnvTest = "test"
	EnvDev  = "dev"
)
View Source
const (
	BaseConfigFile  = "app.toml"
	DefaultHttpPort = 8080
	DefaultAppName  = "omni-orchestrator"
)

Variables

View Source
var (
	Name     string
	Debug    bool
	Hostname string
	HttpPort = DefaultHttpPort
	EnvName  = EnvDev
	Info     *ApplicationInfo
)
View Source
var (
	AppConfig appconfig.Config
)
View Source
var Logger *zap.Logger

Functions

func Bootstrap

func Bootstrap(configDir string, appInfo *ApplicationInfo)

func LocTime

func LocTime() time.Time

LocTime get local time

Types

type ApplicationInfo

type ApplicationInfo struct {
	Tag       string `json:"tag" description:"get tag name"`
	CommitID  string `json:"commitID" description:"git commit ID."`
	ReleaseAt string `json:"releaseAt" description:"build date"`
}

Jump to

Keyboard shortcuts

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