Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Get returns the cached result for the endpoint. Get(endpointID string) (Result, bool) // Set sets the cached result for the endpoint. Set(endpointID string, result Result) // Remove clears the cached result for the endpoint. Remove(endpointID string) }
Manager provides a probe results cache and channel of updates.
func NewManager ¶
NewManager creates and returns an empty results manager.
type Result ¶
type Result int
Result is the type for probe results.
func (Result) ToPrometheusType ¶
ToPrometheusType translates a Result to a form which is better understood by prometheus.
Click to show internal directories.
Click to hide internal directories.