chain

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: 4 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 {
	Ballot  paxi.Ballot
	Command paxi.Command
	LSN     uint64
	From    paxi.ID
}

func (Accept) String

func (m Accept) String() string

type Ack

type Ack struct {
	Ballot paxi.Ballot
	LSN    uint64
	From   paxi.ID
}

func (Ack) String

func (m Ack) String() string

type Client

type Client struct {
	*paxi.HTTPClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) Get

func (c *Client) Get(key paxi.Key) (paxi.Value, error)

func (*Client) Put

func (c *Client) Put(key paxi.Key, value paxi.Value) error

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