basic

package
v0.0.0-...-fe73bcc Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package basic implements single decree paxos algorithm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

Node implements basic-paxos algorithm.

func New

func New(pp2p link.Perfect, beb broadcast.BestEffort) *Node

New Instantiates a basic-paxos node.

func (*Node) Decide

func (n *Node) Decide(f func(interface{}))

Decide registers the decide handler.

func (*Node) Propose

func (n *Node) Propose(v interface{})

Propose proposes value v for consensus

Jump to

Keyboard shortcuts

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