app

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VersionMajor the major version number
	VersionMajor string
	// VersionMinor the minor version number
	VersionMinor string
	// VersionPatch the patch version number
	VersionPatch string
	// BuildDate the build date
	BuildDate string
	// Revision the revision number
	Revision string
	// LastAuthor the author of last commit
	LastAuthor string
	// LastDate the date of last commit
	LastDate string
)

Functions

func GetDefaultConfigFile

func GetDefaultConfigFile() string

GetDefaultConfigFile return the config file used

func GetHomeDir

func GetHomeDir() string

GetHomeDir return the application home directory

func GetName

func GetName() string

GetName return the application name

func GetPidFile

func GetPidFile() string

GetPidFile return the pid file path

func LogVersion

func LogVersion(logger *zap.Logger)

LogVersion print the version info to logger

func PrintVersion

func PrintVersion()

PrintVersion print the version info to stdout

func RemovePIDFile

func RemovePIDFile()

RemovePIDFile do the application clean up

func UpdatePIDFile

func UpdatePIDFile(fileName string) error

UpdatePIDFile update the pid in pidfile

Types

This section is empty.

Jump to

Keyboard shortcuts

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