Documentation
¶
Index ¶
- func Enable(opts SystatusOptions)
- func HandleMem(opts MemHandlerOpts) func(w http.ResponseWriter, r *http.Request)
- type CPUHandlerOpts
- type CPUResponse
- type DiskHandlerOpts
- type DiskResponse
- type EnvHandlerOpts
- type EnvResponse
- type HealthHandlerOpts
- type HealthResponse
- type MemHandlerOpts
- type MemResponse
- type SystatusOptions
- type UptimeHandlerOpts
- type UptimeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enable ¶
func Enable(opts SystatusOptions)
func HandleMem ¶
func HandleMem(opts MemHandlerOpts) func(w http.ResponseWriter, r *http.Request)
Types ¶
type CPUHandlerOpts ¶
type CPUHandlerOpts struct {
Middlewares []func(next http.HandlerFunc) http.HandlerFunc
}
type CPUResponse ¶
type CPUResponse struct{}
type DiskHandlerOpts ¶
type DiskHandlerOpts struct {
Middlewares []func(next http.HandlerFunc) http.HandlerFunc
}
type DiskResponse ¶
type DiskResponse struct{}
type EnvHandlerOpts ¶
type EnvHandlerOpts struct {
Middlewares []func(next http.HandlerFunc) http.HandlerFunc
SensitiveKeys []string
}
type EnvResponse ¶
type HealthHandlerOpts ¶
type HealthHandlerOpts struct {
Middlewares []func(next http.HandlerFunc) http.HandlerFunc
Healthcheck func(w http.ResponseWriter, r *http.Request)
}
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
}
type MemHandlerOpts ¶
type MemHandlerOpts struct {
Middlewares []func(next http.HandlerFunc) http.HandlerFunc
}
type MemResponse ¶
type SystatusOptions ¶
type SystatusOptions struct {
Mux *http.ServeMux
Prefix string
ExposeEnv bool
PrettyLogger bool
HealthHandlerOpts HealthHandlerOpts
CPUHandlerOpts CPUHandlerOpts
EnvHandlerOpts EnvHandlerOpts
DiskHandlerOpts DiskHandlerOpts
UptimeHandlerOpts UptimeHandlerOpts
MemHandlerOpts MemHandlerOpts
}
type UptimeHandlerOpts ¶
type UptimeHandlerOpts struct {
Middlewares []func(next http.HandlerFunc) http.HandlerFunc
}
type UptimeResponse ¶
Click to show internal directories.
Click to hide internal directories.