processor

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.16.0

func Run(handle HandleTask, project Project, db DB, retrieve RetrieveTask, prv *ecdsa.PrivateKey, chainEndpoint string, routerAddr common.Address) error

Types

type DB added in v0.16.0

type DB interface {
	UnprocessedTask() (common.Hash, error)
	ProcessTask(common.Hash, error) error
}

type HandleTask added in v0.16.0

type HandleTask func(task *task.Task, projectConfig *project.Config) ([]byte, error)

type Project

type Project func(projectID *big.Int) (*project.Project, error)

type RetrieveTask added in v0.16.0

type RetrieveTask func(taskIDs []common.Hash) ([]*task.Task, error)

Jump to

Keyboard shortcuts

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