dynamo

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 Replica

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

func NewReplica

func NewReplica(id paxi.ID) *Replica

func (*Replica) HandleReplicate

func (r *Replica) HandleReplicate(m Replicate)

func (*Replica) HandleRequest

func (r *Replica) HandleRequest(m paxi.Request)

HandleRequest handles read request if node is one of replica, otherwise forward to random replica write request will only write to first node in replica set, and replicate asynchronously

type Replicate

type Replicate struct {
	Command paxi.Command
}

Jump to

Keyboard shortcuts

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