mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-28 17:12:13 +00:00
9a2ae39430
A Peer as defined by the `cluster` package represents the node in the cluster. It is used in other packages to know the status of all of the members or how long should we wait to know if a notification has already fired. In Cortex, we'd like to implement a slightly different way of clustering (using gRPC for communication and a hash ring for node discovery). This is a small change to support that by changing the consumer of other packages to an interface. Silences and Notification channels don't need an interface as they take a `func([]byte) error` as a parameter. Signed-off-by: gotjosh <josue@grafana.com> |
||
---|---|---|
.. | ||
clusterpb | ||
advertise_test.go | ||
advertise.go | ||
channel_test.go | ||
channel.go | ||
cluster_test.go | ||
cluster.go | ||
delegate.go |