Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Noop ¶
type Noop struct{}
Noop is an implementation of the Merger interface which does not actually merge responses, but just returns an arbitrary response(the first in the list). It can be used for write requests where the response is either empty or inconsequential.
type V1Alerts ¶
type V1Alerts struct{}
V1Alerts implements the Merger interface for GET /v1/alerts. It returns the union of alerts over all the responses. When the same alert exists in multiple responses, the alert instance in the earliest response is returned in the final response. We cannot use the UpdatedAt timestamp as for V2Alerts, because the v1 API does not provide it.
Click to show internal directories.
Click to hide internal directories.