epaxos

package
v0.0.0-...-6823d0b Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 6 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  paxi.Ballot
	Replica paxi.ID
	Slot    int
	Seq     int
	Dep     map[paxi.ID]int
}

type AcceptReply

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

type Commit

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

type PreAccept

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

func (PreAccept) String

func (m PreAccept) String() string

type PreAcceptReply

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

func (PreAcceptReply) String

func (m PreAcceptReply) String() string

type Replica

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

func NewReplica

func NewReplica(id paxi.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