mirror

package
v0.0.0-...-8a3d261 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinator

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

func NewCoordinator

func NewCoordinator(dedup *trie.Dedup) *Coordinator

func (*Coordinator) Fetch

func (c *Coordinator) Fetch(ctx context.Context, conn *wire.KeyTreeClient, parallelism int, hash crypto.Hash, old *trie.Node) (*trie.Node, error)

type Mirror

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

func NewMirror

func NewMirror(ctx context.Context, coordinator *Coordinator, conn *wire.KeyTreeClient, address, publicKey string, initial *trie.Node, follower TrieFollower) *Mirror

func (*Mirror) Run

func (m *Mirror) Run() error

type TrieFollower

type TrieFollower interface {
	FullSync(*wire.SignedRoot, *trie.Node)
	PartialSync(*wire.SignedRoot, *trie.Node)
	Updated(*wire.SignedRoot, *trie.Node, []*wire.TrieLeaf)
}

Jump to

Keyboard shortcuts

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