app

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

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 added in v1.0.27

func RemovePidFile()

RemovePidFile do the application clean up

func UpdatePidFile added in v1.0.27

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