alertmanager/cluster
gotjosh 9a2ae39430
Clustering: Interface for Peers in other packages
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>
2021-02-19 19:07:41 +00:00
..
clusterpb Update github.com/gogo/protobuf to v1.3.2 (#2478) 2021-02-09 16:49:07 +01:00
advertise_test.go cluster: fail when no private address can be found (#1437) 2018-07-05 22:59:56 +02:00
advertise.go cluster: Fix typo in comment (#1668) 2018-12-16 14:03:55 +01:00
channel_test.go gossip large messages via SendReliable (#1415) 2018-06-15 13:40:21 +02:00
channel.go Make MaxGossipPacketSize public (#2475) 2021-02-05 18:06:47 +01:00
cluster_test.go Fix TestClusterJoinAndReconnect on macos (#2110) 2019-11-21 14:17:24 +01:00
cluster.go Clustering: Interface for Peers in other packages 2021-02-19 19:07:41 +00:00
delegate.go cluster: add more metrics (#1941) 2019-07-01 10:24:41 +02:00