Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Logger logger
OnUpdate UpdateFunc
Namespace string
Selector string
PodIP string
PodPort string
}
type PeerInfo ¶
type PeerInfo struct {
// (Optional) The name of the data center this peer is in. Leave blank if not using multi data center support.
DataCenter string
// (Required) The ip address of the peer
IPAddress string
// (Optional) The http address:port of the peer
HTTPAddress string
// (Optional) The grpc address:port of the peer
GRPCAddress string
// (Optional) Is true if PeerInfo is for this instance of app
IsOwner bool
}
type UpdateFunc ¶
type UpdateFunc func([]PeerInfo)
Click to show internal directories.
Click to hide internal directories.