...

Package appinfo

import "golang.conradwood.net/go-easyops/appinfo"
Overview
Index

Overview ▾

This package stores data about the build process. During build variables are set, such as file location, build number and time. These can be retrieved through this package.

Variables

var (
    OldAppInfo        *AppVersionInfo // set by cmdline
    LD_Number         string          // set by linker flags
    LD_Description    string
    LD_Timestamp      string
    LD_RepositoryID   string
    LD_ArtefactID     string
    LD_RepositoryName string
    LD_CommitID       string
    LD_GitURL         string
)

func RegisterAppInfo

func RegisterAppInfo(avi *AppVersionInfo)

type AppVersionInfo

type AppVersionInfo struct {
    Number         uint64
    Description    string
    Timestamp      int64
    RepositoryID   uint64
    RepositoryName string
    CommitID       string
    GitURL         string
    ArtefactID     uint64
}

func AppInfo

func AppInfo() *AppVersionInfo