Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers contains http methods with debug service info and swagger docs.
func NewHandlers ¶
func NewHandlers(info *app.Info, opts *app.Options, health Health, services ...transport.Service) *Handlers
NewHandlers create and init handlers object.
func (*Handlers) InitRoutes ¶
func (s *Handlers) InitRoutes(r chi.Router)
InitRoutes init routes for current router with debug service info and swagger docs.
type Health ¶ added in v0.14.0
type Health interface { LivenessHandler(w http.ResponseWriter, r *http.Request) ReadinessHandler(w http.ResponseWriter, r *http.Request) }
Health contains handlers to check app is healthy.
Click to show internal directories.
Click to hide internal directories.