postgres: kubedb.dev/postgres/pkg/leader_election Index | Files

package leader_election

import "kubedb.dev/postgres/pkg/leader_election"

Index

Package Files

leader_election.go

Constants

const (
    RolePrimary = "primary"
    RoleReplica = "replica"

    LeaseDurationEnv = "LEASE_DURATION"
    RenewDeadlineEnv = "RENEW_DEADLINE"
    RetryPeriodEnv   = "RETRY_PERIOD"
)

func GetLeaderLockName Uses

func GetLeaderLockName(offshootName string) string

func RunLeaderElection Uses

func RunLeaderElection()

Package leader_election imports 20 packages (graph) and is imported by 4 packages. Updated 2019-07-20. Refresh now. Tools for package owners.