bba

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidType = errors.New("request type is invalid")
View Source
var ErrNoResult = errors.New("no result with id")
View Source
var ErrUndefinedRequestType = errors.New("unexpected request type")

Functions

func IsErrNoResult

func IsErrNoResult(err error) bool

Types

type AuxRequest

type AuxRequest struct {
	Value cleisthenes.Binary
}

func (AuxRequest) Recv

func (r AuxRequest) Recv()

type BBA

type BBA struct {
	sync.RWMutex
	cleisthenes.Tracer
	// contains filtered or unexported fields
}

func New

func New(
	n, f int,
	epoch cleisthenes.Epoch,
	owner cleisthenes.Member,
	proposer cleisthenes.Member,
	broadcaster cleisthenes.Broadcaster,
	binInputChan cleisthenes.BinarySender,
) *BBA

func (*BBA) Close

func (bba *BBA) Close()

func (*BBA) HandleInput

func (bba *BBA) HandleInput(round uint64, bvalRequest *BvalRequest) error

HandleInput will set the given val as the initial value to be proposed in the Agreement

func (*BBA) HandleMessage

func (bba *BBA) HandleMessage(sender cleisthenes.Member, msg *pb.Message_Bba) error

HandleMessage will process the given rpc message.

func (*BBA) Idle

func (bba *BBA) Idle() bool

func (*BBA) Result

func (bba *BBA) Result() (cleisthenes.Binary, bool)

func (*BBA) Round

func (bba *BBA) Round() uint64

func (*BBA) Trace

func (bba *BBA) Trace()

type BvalRequest

type BvalRequest struct {
	Value cleisthenes.Binary
}

func (BvalRequest) Recv

func (r BvalRequest) Recv()

Jump to

Keyboard shortcuts

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