worker

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParseError

type ParseError string

ParseError indicates a big.Int could not be parsed.

func (ParseError) Error

func (p ParseError) Error() string

Error detailing what couldn't be parsed.

type Service

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

A Service that will periodically check alicenet for latest blocks and add them to the index.

func New

func New(client alicenet.Interface, stores *alicenet.Stores) *Service

New Service from an alicenet client and stores.

func (*Service) Run

func (s *Service) Run(ctx context.Context)

Run the service.

Jump to

Keyboard shortcuts

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