log

package
v0.0.0-...-fea0aa2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(id string)

Types

type LogMessage

type LogMessage struct {
	ClientId  string
	RequestId int
	Log       Message
}

func (LogMessage) String

func (log LogMessage) String() string

type Message

type Message struct {
	Action string
	Key    string
	Val    *string
}

func (Message) String

func (msg Message) String() string

type OpResult

type OpResult struct {
	Val       *string
	Err       *string
	Committed bool
}

func (*OpResult) String

func (or *OpResult) String() string

type Operation

type Operation struct {
	OpId      int
	Log       LogMessage
	Result    *OpResult
	Quorum    map[int]bool
	Committed bool
}

func (*Operation) Commit

func (op *Operation) Commit() *OpResult

func (*Operation) IsQuorumSatisfied

func (op *Operation) IsQuorumSatisfied() bool

func (Operation) String

func (op Operation) String() string

Jump to

Keyboard shortcuts

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