common

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogfilePrefix prefix of log file
	LogfilePrefix = "/var/log/cds/"
	// MBSIZE MB size
	MBSIZE = 1024 * 1024
)

Variables

This section is empty.

Functions

func SetLogAttribute

func SetLogAttribute(logType, driver string)

rotate log file by 2M bytes default print log to stdout and file both.

Types

type VersionInfo

type VersionInfo struct {
	Version   string `json:"version"`
	GitCommit string `json:"gitCommit"`
	BuildDate string `json:"buildDate"`
	GoVersion string `json:"goVersion"`
	Compiler  string `json:"compiler"`
	Platform  string `json:"platform"`
}

func GetVersion

func GetVersion() VersionInfo

Jump to

Keyboard shortcuts

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