Documentation ¶
Overview ¶
Package gobernate provides an easy HTTP Handler containing all end-points required to run a golang service in Kubernetes. This code is roughly based on: https://blog.gopheracademy.com/advent-2017/kubernetes-ready-service/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gobernate ¶
type Gobernate struct { // Router is the mux router, so extra end-points can be added. Router *mux.Router // contains filtered or unexported fields }
Gobernate provides an easy HTTP Handler containing all end-points required to run a golang service in Kubernetes. This code is roughly based on: https://blog.gopheracademy.com/advent-2017/kubernetes-ready-service/
func (*Gobernate) Launch ¶
Launch runs the gobernate service on the port, and serves the version info. Returns a shutdown channel to either block while serving, or to close to take down the service
func (*Gobernate) Ready ¶
func (g *Gobernate) Ready()
Ready signals that the service is ready to serve. Call once all initialization has completed.