paxos_group

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 Accept

type Accept struct {
	GroupID int
	paxos.P2a
}

type Accepted

type Accepted struct {
	GroupID int
	paxos.P2b
}

type Commit

type Commit struct {
	GroupID int
	paxos.P3
}

type Prepare

type Prepare struct {
	GroupID int
	paxos.P1a
}

type Promise

type Promise struct {
	GroupID int
	paxos.P1b
}

type Replica

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

func NewReplica

func NewReplica(id paxi.ID) *Replica

func (*Replica) Broadcast

func (r *Replica) Broadcast(msg interface{})

Broadcast overrides Socket interface in Node

func (*Replica) Send

func (r *Replica) Send(to paxi.ID, msg interface{})

Send overrides Socket interface in Node

Jump to

Keyboard shortcuts

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