blockchain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: MIT Imports: 29 Imported by: 20

Documentation

Index

Constants

View Source
const (
	JobAddressHeader   = "snet-job-address"
	JobSignatureHeader = "snet-job-signature"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

func NewProcessor

func NewProcessor(boltDB *bolt.DB) (Processor, error)

NewProcessor creates a new blockchain processor

func (Processor) CompleteJob

func (p Processor) CompleteJob(jobAddressBytes, jobSignatureBytes []byte)

func (Processor) GrpcStreamInterceptor

func (p Processor) GrpcStreamInterceptor() grpc.StreamServerInterceptor

func (Processor) IsValidJobInvocation

func (p Processor) IsValidJobInvocation(jobAddressBytes, jobSignatureBytes []byte) bool

func (Processor) StartLoop

func (p Processor) StartLoop()

StartLoops starts background processing for event and job completion routines

Jump to

Keyboard shortcuts

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