dao_cluster

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllElections

func AllElections() (res []map[string]interface{}, err error)

AllElections returns all nodes in the election

func ElectionPrefix

func ElectionPrefix() string

ElectionPrefix returns etcd prefix

func GetElection added in v1.1.3

func GetElection(leaseId string) (res *string, err error)

GetElection get election value

func LeaderNode

func LeaderNode() (nodeName string, err error)

LeaderNode return current name of current leader node

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL