Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalServer ¶
type InternalServer struct {
// contains filtered or unexported fields
}
InternalServer will collect from each handler the status and return it over HTTP
func New ¶
func New(cfg config.Config, h InternalStatFunc, c InternalStatFunc) *InternalServer
New createse a new internal server instance
func (*InternalServer) Run ¶
func (srv *InternalServer) Run()
Run starts a server on the specified port listening for the provided path
type InternalStatFunc ¶
type InternalStatFunc func() (stats map[string]metric.InternalMetrics)
InternalStatFunc can be used to extract metrics
type ResponseFormat ¶
type ResponseFormat struct { Memory metric.InternalMetrics Handlers map[string]metric.InternalMetrics Collectors map[string]metric.InternalMetrics }
ResponseFormat is the structure of the response from an http request
Click to show internal directories.
Click to hide internal directories.