Documentation ¶
Index ¶
- func NewService(opts ...Option) *http.Server
- type Option
- func Address(a string) Option
- func Health(h func(http.ResponseWriter, *http.Request)) Option
- func Logger(l log.Logger) Option
- func Name(n string) Option
- func Pprof(p bool) Option
- func Ready(r func(http.ResponseWriter, *http.Request)) Option
- func Token(t string) Option
- func Version(v string) Option
- func Zpages(z bool) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
NewService initializes a new debug service.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func Health ¶
func Health(h func(http.ResponseWriter, *http.Request)) Option
Health provides a function to set the health option.
Click to show internal directories.
Click to hide internal directories.