Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValueNotConfigured = errors.New("value is not set in context") ErrIllegalContextValue = errors.New("illegal value is set in context") )
Functions ¶
func CreateVersionContext ¶
func CreateVersionContext(ctx context.Context, version *VersionInfo) context.Context
Types ¶
type VersionInfo ¶
type VersionInfo struct { BuildDate string `json:"buildDate" yaml:"buildDate"` Commit string `json:"commit" yaml:"commit"` Version string `json:"version" yaml:"version"` }
func GetVersion ¶
func GetVersion(ctx context.Context) (*VersionInfo, error)
Click to show internal directories.
Click to hide internal directories.