Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaderCallbacks ¶
type LeaderElector ¶
type LeaderElector interface { Run(ctx context.Context) IsLeader(shardId int) bool GetLeaders() map[int]proxyv1alpha1.EndpointInfo SetCallbacks(LeaderCallbacks) }
func NewLeaderElector ¶
func NewLeaderElector(config componentbaseconfig.LeaderElectionConfiguration, client clientset.Interface, identity string, ShardingCount int) (LeaderElector, error)
Click to show internal directories.
Click to hide internal directories.