vpaxos

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Key       paxi.Key
	Ballot    paxi.Ballot
	OldBallot paxi.Ballot
}

Info is reply message for both query and Move message Info announce new ballot number

func (Info) String

func (m Info) String() string

type Move

type Move struct {
	Key  paxi.Key
	From paxi.ID
	To   paxi.ID
}

Move message suggest master to move an object

func (Move) String

func (m Move) String() string

type P1a

type P1a struct {
	Key    paxi.Key
	Ballot paxi.Ballot
}

func (P1a) String

func (m P1a) String() string

type P1b

type P1b struct {
	Key    paxi.Key
	Ballot paxi.Ballot
	ID     paxi.ID
	Log    map[int]paxi.Command
}

func (P1b) String

func (m P1b) String() string

type P2a

type P2a struct {
	Ballot  paxi.Ballot
	Slot    int
	Command paxi.Command
}

P2a accept message

func (P2a) String

func (m P2a) String() string

type P2b

type P2b struct {
	Ballot paxi.Ballot
	ID     paxi.ID // from node id
	Slot   int
}

P2b accepted message

func (P2b) String

func (m P2b) String() string

type P3

type P3 struct {
	Ballot  paxi.Ballot
	Slot    int
	Command paxi.Command
}

P3 commit message

func (P3) String

func (m P3) String() string

type Query

type Query struct {
	Key paxi.Key
	ID  paxi.ID
}

Query message request the current info on key from master

func (Query) String

func (m Query) String() string

type Replica

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

func NewReplica

func NewReplica(id paxi.ID) *Replica

Jump to

Keyboard shortcuts

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