Documentation
¶
Overview ¶
Package server contains the core logic for starting processor and serving resulting metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server interface {
// Handle registers a handler for the given pattern, similar to http.Handle.
Handle(pattern string, handler http.Handler)
// Start starts the server and blocks until the server is stopped.
Start(ctx context.Context) error
}
Server is the interface for serving the metrics.
Click to show internal directories.
Click to hide internal directories.