Documentation ¶
Overview ¶
Package admin simplifies the setup of various administrative endpoints such as healthchecks, debugging, and service information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OptionFunc ¶
type OptionFunc func(*server)
OptionFunc is used to configure the runner.
func WithInfo ¶
func WithInfo(info ServiceInfo) OptionFunc
WithInfo configures the information endpoint to present information about the service.
func WithUptime ¶
func WithUptime() OptionFunc
WithUptime adds a handler to the administrative endpoint that returns the uptime of the service. It is registered at /uptime.
type ServiceInfo ¶
ServiceInfo represents information about a service that operators may find useful.
Click to show internal directories.
Click to hide internal directories.