tasker

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "taskerNewChallenge"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel string
}

type Tasker

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

func New

func New(
	ctx context.Context,
	logger log.Logger,
	cfg Config,
	client *ethclient.Client,
	contract contracts.TellorCaller,
	accounts []*ethereum.Account,
) (*Tasker, map[string]chan *mining.Work, error)

func (*Tasker) Start

func (self *Tasker) Start() error

func (*Tasker) Stop

func (self *Tasker) Stop()

Jump to

Keyboard shortcuts

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