proposerstate

package
v0.0.0-...-5782b8f Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	ProposerID      int32
	CurrentInstance int32
}

func (*State) Marshal

func (t *State) Marshal(wire io.Writer)

func (*State) New

func (t *State) New() fastrpc.Serializable

func (*State) Unmarshal

func (t *State) Unmarshal(wire io.Reader) error

type Stateiser

type Stateiser struct {
	Recv chan fastrpc.Serializable

	*genericsmr.Replica

	proposer.Proposer
	T *time.Timer
	// contains filtered or unexported fields
}

func StateiserNew

func StateiserNew(replica *genericsmr.Replica, proposer proposer.Proposer, freq time.Duration) Stateiser

func (*Stateiser) BcastCurrentState

func (state *Stateiser) BcastCurrentState()

func (*Stateiser) BeginTimer

func (state *Stateiser) BeginTimer()

func (*Stateiser) GetCurrentInstance

func (state *Stateiser) GetCurrentInstance() int32

func (*Stateiser) HandleState

func (state *Stateiser) HandleState(stateMsg *State, proposer proposer.Proposer)

func (*Stateiser) SetCurrentInstance

func (state *Stateiser) SetCurrentInstance(inst int32)

Jump to

Keyboard shortcuts

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