Documentation
¶
Overview ¶
Package meta serves what a running API knows about itself: its name, and the version and build of its binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
// Name is the service's name.
Name string `json:"name"`
// Version is the main module's version, or "(devel)" for a binary not
// built by go install at a version.
Version string `json:"version,omitempty"`
// Revision is the VCS revision the binary was built from, if known.
Revision string `json:"revision,omitempty"`
// Modified reports whether the working tree had uncommitted changes.
Modified bool `json:"modified,omitempty"`
// GoVersion is the Go release that built the binary.
GoVersion string `json:"go_version,omitempty"`
}
Info is the body of a meta response.
Click to show internal directories.
Click to hide internal directories.