Documentation
¶
Overview ¶
Package buildinfo identifies the running binary, independently of protocol version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildTime string
View Source
var ReleaseRepo = "koltyakov/control"
View Source
var Version = "dev"
Build metadata is set by the release/development builder using -ldflags.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version"`
ReleaseRepo string `json:"releaseRepo,omitempty"`
BuildTime string `json:"buildTime,omitempty"`
OS string `json:"os"`
Arch string `json:"arch"`
SHA256 string `json:"sha256,omitempty"`
// Epoch zero denotes gateways predating explicit compatibility declarations.
GatewayProtocol int `json:"gatewayProtocol,omitempty"`
NodeGatewayMin int `json:"nodeGatewayMin,omitempty"`
NodeGatewayMax int `json:"nodeGatewayMax,omitempty"`
}
func (Info) SupportsGateway ¶ added in v0.5.7
SupportsGateway is an explicit executable declaration, not a version guess. An absent range must retain gateway-first update ordering.
Click to show internal directories.
Click to hide internal directories.