election

package
v2.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is election cycle manager

func NewManager

func NewManager(ctx context.Context, optNode *node.Node) (m *Manager)

NewManager returns a new manager

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) Closed

func (m *Manager) Closed() chan struct{}

func (*Manager) CompleteClose

func (m *Manager) CompleteClose()

func (*Manager) GetRole

func (m *Manager) GetRole() constant.Role

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

Run election cycle

Jump to

Keyboard shortcuts

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