Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeInfoHandler ¶
func MakeInfoHandler(c Consumer, started time.Time) http.HandlerFunc
MakeInfoHandler returns an HTTP handler which can be added to an exposed HTTP server mux by Metafora applications to provide operators with basic node introspection.
Types ¶
type Consumer ¶
type Consumer interface {
Frozen() bool
Tasks() []metafora.RunningTask
String() string
}
Consumer contains just the Metafora methods exposed by the HTTP introspection endpoints.
Click to show internal directories.
Click to hide internal directories.