Versions in this module Expand all Collapse all v1 v1.4.0 Nov 21, 2020 v1.3.1 Nov 29, 2019 Changes in this version + const JSONContentType + var DefaultHealthPath = "/health" + var DefaultStatsPath = "/metrics" + func CombineMuxes(muxes ...*bone.Mux) *bone.Mux + func NewHealthMux(v ...Health) *bone.Mux + func NewMux() *bone.Mux + func NewServer(addr string, mux *bone.Mux, muxes ...*bone.Mux) *http.Server + func NewStatsMux(s stats.Statter) *bone.Mux + func RealIP(r *http.Request) string + func WriteJSONResponse(w http.ResponseWriter, code int, v interface{}) error + type Health interface + IsHealthy func() error + type StatsHandler interface + Handler func() http.Handler Other modules containing this package github.com/hamba/pkg/v2