router

package
v0.0.0-...-349195c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	EntryHashStream chan node.EntryHash        // Stream of hashes to record
	DBs             []*database.DB             // Databases where hashes are recorded
	ACCs            []*accumulator.Accumulator // Accumulators to record hashes
	EntryFeeds      []chan node.EntryHash
	Controls        []chan bool
	MDFeeds         []chan *types.Hash
}

func (*Router) Init

func (r *Router) Init(entryHashStream chan node.EntryHash, NumAccumulator int)

Init Allocate a given number of accumulators to record hashes

func (*Router) Run

func (r *Router) Run()

Jump to

Keyboard shortcuts

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