machine

package
v0.0.0-...-bc63929 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	// contains filtered or unexported fields
}

func New

func New(log finn.Logger, addr string) (*Machine, error)

func (*Machine) Close

func (m *Machine) Close() error

func (*Machine) Command

func (m *Machine) Command(a finn.Applier, conn redcon.Conn, cmd redcon.Command) (interface{}, error)

Command processes a command through the Raft pipeline.

func (*Machine) ConnAccept

func (m *Machine) ConnAccept(conn redcon.Conn) bool

func (*Machine) ConnClosed

func (m *Machine) ConnClosed(conn redcon.Conn, err error)

func (*Machine) Restore

func (m *Machine) Restore(rd io.Reader) error

Restore restores a snapshot

func (*Machine) Snapshot

func (m *Machine) Snapshot(wr io.Writer) error

Snapshot creates a snapshot

Jump to

Keyboard shortcuts

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