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
Click to show internal directories.
Click to hide internal directories.