mirror of
https://github.com/prometheus/alertmanager
synced 2025-01-29 01:32:55 +00:00
ff85bec45b
* Add TLS option to gossip cluster Co-authored-by: Sharad Gaur <sharadgaur@gmail.com> Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * generate new certs that expire in 100 years Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Fix tls_connection attributes Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Improve error message Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Fix tls client config docs Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Add capacity arg to message buffer Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * fix formatting Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Update version; add version validation Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * use lru cache for connection pool Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * lock reading from the connection Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * when extracting net.Conn from tlsConn, lock and throw away wrapper Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * Add mutex to connection pool to protect cache Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> * fix linting Signed-off-by: Dustin Hooten <dustinhooten@gmail.com> Co-authored-by: Sharad Gaur <sharadgaur@gmail.com>
30 lines
538 B
Protocol Buffer
30 lines
538 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package clusterpb;
|
|
import "gogoproto/gogo.proto";
|
|
|
|
option (gogoproto.marshaler_all) = true;
|
|
option (gogoproto.sizer_all) = true;
|
|
option (gogoproto.unmarshaler_all) = true;
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
message Part {
|
|
string key = 1;
|
|
bytes data = 2;
|
|
}
|
|
|
|
message FullState {
|
|
repeated Part parts = 1 [(gogoproto.nullable) = false];
|
|
}
|
|
|
|
message MemberlistMessage {
|
|
string version = 1;
|
|
enum Kind {
|
|
STREAM = 0;
|
|
PACKET = 1;
|
|
}
|
|
Kind kind = 2;
|
|
string from_addr = 3;
|
|
bytes msg = 4;
|
|
}
|