about

package
v1.1.28-test Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of the app, generated at build time
	Version   = "dev"
	Epoch     = "-1"
	Timestamp = "dev"
	Build     = "dev"
)

Build information stamped at link time. Each service's Makefile/Dockerfile passes `-ldflags "-X github.com/controlplane-com/libs-go/pkg/about.<Var>=..."`; the -X flag works for any package that is part of the build, so one shared package serves every binary.

Functions

func ServeAbout

func ServeAbout(writer http.ResponseWriter, _ *http.Request)

ServeAbout writes the build information as JSON. Usable directly as an http.HandlerFunc.

Types

type Ab

type Ab struct {
	Version   string `json:"version"`
	Timestamp string `json:"timestamp"`
	Epoch     string `json:"epoch"`
	Build     string `json:"build"`
}
var About Ab

Jump to

Keyboard shortcuts

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