Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Options
Members *Memberlist
}
type Delegate ¶
type Delegate struct {
HealthChecks []HealthCheck
}
func (*Delegate) GetBroadcasts ¶
func (*Delegate) LocalState ¶
func (*Delegate) MergeRemoteState ¶
type HealthCheck ¶
type Memberlist ¶
type Memberlist memberlist.Memberlist
func StartGossip ¶
func StartGossip(options *Options) (*Memberlist, error)
type MemberlistConfig ¶
type MemberlistConfig memberlist.Config
type Options ¶
type Options struct {
// Current nodes name.
// If not specified defaults to current IP of the pod.
// If could not detect current IP, it will use hostname
Name string
// Open port for broadcasting and advertising.
// If not specified an available port will be chosen
Port int
// Kubernetes headless service config
KubeHeadlessServiceURL string
Memberlist MemberlistConfig
}
Click to show internal directories.
Click to hide internal directories.