sys

package
v0.0.0-...-d988ceb Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildRef  = expvar.NewString("build_ref")
	BuildDate = expvar.NewString("build_date")
	BuildName = expvar.NewString("build_name")
)

BuildXXX are exported variables. These variables will be sets at build time.

Functions

This section is empty.

Types

type Info

type Info struct {
	InstanceID   string `json:"instance_id"`
	InstanceName string `json:"instance_name"`
	BuildRef     string `json:"build_ref"`
	BuildDate    string `json:"build_date"`
	Environment  string `json:"environment"`
}

Info represents the system info.

func NewInfo

func NewInfo(id string, env string) Info

NewInfo creates a new system info with build info.

type Support

type Support struct {
	Database string `json:"database"`
	Storage  string `json:"storage"`
	Service  string `json:"service"`
}

Support represents the support system info.

Jump to

Keyboard shortcuts

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