info

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitCommit string // $(git rev-parse HEAD) (1b4716ab84903b2e477135a3dc5afdb07f685cb7)
	BuildDate string // $(date -u +'%Y-%m-%dT%H:%M:%SZ') (2018-03-08T18:54:38Z)
	Version   string // release version (0.6.0)
)

Functions

This section is empty.

Types

type BuildMeta

type BuildMeta struct {
	GitCommit string `json:"GitCommit,omitempty"`
	BuildDate string `json:"BuildDate,omitempty"`
	Version   string `json:"Version,omitempty"`
}

func BuildInfo

func BuildInfo() BuildMeta

func (BuildMeta) String

func (info BuildMeta) String() string

type ServerInfo

type ServerInfo struct {
	Build      BuildMeta `json:"Build,omitempty"`
	ServerTime Time      `json:"ServerTime,omitempty"`
}

func ApiInfo

func ApiInfo() ServerInfo

func (ServerInfo) String

func (info ServerInfo) String() string

type Time

type Time struct {
	Timezone    string    `json:"Timezone,omitempty"`
	CurrentTime time.Time `json:"CurrentTime,omitempty"`
}

func TimeInfo

func TimeInfo() Time

type Versions

type Versions struct {
	Client map[string]BuildMeta `json:"client"`
	Server map[string]BuildMeta `json:"server"`
}

Versions is a container of versions of the client (and its plugins) and server (and its plugins).

Jump to

Keyboard shortcuts

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