runner

package
v0.0.0-...-d7bcf31 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2016 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 BlockMapReducer

type BlockMapReducer interface {
	Initialise(client *rpc.Client) (acc interface{}, err error)
	BlockRange() (blockRangeFrom, blockRangeTo uint32)
	Map(client *rpc.Client, emit func(interface{}) error, block *rpc.Block) (err error)
	Reduce(client *rpc.Client, acc, value interface{}) (newAcc interface{}, err error)
	ProcessResults(acc interface{}, nextBlockToProcess uint32) (err error)
}

type Context

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

func Run

func Run(client *rpc.Client, implementation BlockMapReducer) (*Context, error)

func (*Context) Interrupt

func (ctx *Context) Interrupt()

func (*Context) Wait

func (ctx *Context) Wait() error

Jump to

Keyboard shortcuts

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