Documentation
¶
Index ¶
- Constants
- type Election
- func (e *Election) Await(ctx context.Context) error
- func (e *Election) Close(ctx context.Context) error
- func (e *Election) GetLeader() string
- func (e *Election) IsLeader() bool
- func (e *Election) Resign(ctx context.Context) error
- func (e *Election) WithMastership(ctx context.Context) (context.Context, error)
- type Factory
Constants ¶
View Source
const ElectionName = "k8s"
ElectionName identifies the kubernetes election implementation.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Election ¶
type Election struct {
// contains filtered or unexported fields
}
func (*Election) GetLeader ¶
GetLeader returns the identity of the last observed leader or returns the empty string if no leader has yet been observed. This function is for informational purposes. (e.g. monitoring, logs, etc.)
Click to show internal directories.
Click to hide internal directories.