Versions in this module Expand all Collapse all v1 v1.3.1 Dec 19, 2023 v1.3.0 Dec 12, 2023 Changes in this version + func EncodeLivenessResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error + func EncodeReadinessResponse(encoder func(context.Context, http.ResponseWriter) goahttp.Encoder) func(context.Context, http.ResponseWriter, any) error + func LivenessHealthPath() string + func Mount(mux goahttp.Muxer, h *Server) + func MountLivenessHandler(mux goahttp.Muxer, h http.Handler) + func MountReadinessHandler(mux goahttp.Muxer, h http.Handler) + func NewLivenessHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler + func NewReadinessHandler(endpoint goa.Endpoint, mux goahttp.Muxer, ...) http.Handler + func ReadinessHealthPath() string + type LivenessResponseBody struct + Service string + Status string + Version string + func NewLivenessResponseBody(res *health.HealthResponse) *LivenessResponseBody + type MountPoint struct + Method string + Pattern string + Verb string + type ReadinessResponseBody struct + Service string + Status string + Version string + func NewReadinessResponseBody(res *health.HealthResponse) *ReadinessResponseBody + type Server struct + Liveness http.Handler + Mounts []*MountPoint + Readiness http.Handler + func New(e *health.Endpoints, mux goahttp.Muxer, ...) *Server + func (s *Server) MethodNames() []string + func (s *Server) Mount(mux goahttp.Muxer) + func (s *Server) Service() string + func (s *Server) Use(m func(http.Handler) http.Handler)