election

package
v0.0.0-...-ff9c3df Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupParams

type GroupParams struct {
	Ipstrs         []string
	Ports          []int
	Offset         int
	Account        string
	CommitteeCount int
	Start_blk      uint64
	Term_len       uint64
}

type PaxosGroup

type PaxosGroup struct {
	Group *C.Term_t
	// contains filtered or unexported fields
}

func NewGroup

func NewGroup(p *GroupParams) *PaxosGroup

func (*PaxosGroup) DestroyGroup

func (g *PaxosGroup) DestroyGroup()

func (*PaxosGroup) Elect

func (g *PaxosGroup) Elect(blk uint64) (int, uint64)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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