admin

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 12 Imported by: 0

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(router 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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