epaxos

package
v0.0.0-...-6206b6d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NONE status = iota
	PREACCEPTED
	ACCEPTED
	COMMITTED
	EXECUTED
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Accept

type Accept struct {
	Ballot  idservice.Ballot
	Replica idservice.ID
	Slot    int
	Seq     int
	Dep     map[idservice.ID]int
}

type AcceptReply

type AcceptReply struct {
	Ballot  idservice.Ballot
	Replica idservice.ID
	Slot    int
}

type Commit

type Commit struct {
	Ballot  idservice.Ballot
	Replica idservice.ID
	Slot    int
	Command db.Command
	Seq     int
	Dep     map[idservice.ID]int
}

type PreAccept

type PreAccept struct {
	Ballot  idservice.Ballot
	Replica idservice.ID
	Slot    int
	Command db.Command
	Seq     int
	Dep     map[idservice.ID]int
}

func (PreAccept) String

func (m PreAccept) String() string

type PreAcceptReply

type PreAcceptReply struct {
	Ballot    idservice.Ballot
	Replica   idservice.ID
	Slot      int
	Seq       int
	Dep       map[idservice.ID]int
	Committed map[idservice.ID]int
}

func (PreAcceptReply) String

func (m PreAcceptReply) String() string

type Replica

type Replica struct {
	node.Node
	// contains filtered or unexported fields
}

func NewReplica

func NewReplica(id idservice.ID) *Replica

NewReplica initialize replica and register all message types

Jump to

Keyboard shortcuts

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