processor

package
v0.16.20 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 14 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() (uint64, common.Hash, error)
	ProcessTask(uint64, common.Hash) error
}

type HandleTask added in v0.16.0

type HandleTask func(task *task.Task, vmTypeID uint64, code string, expParam string) ([]byte, error)

type Project

type Project func(projectID uint64) (*project.Project, error)

type RetrieveTask added in v0.16.0

type RetrieveTask func(projectID uint64, taskID common.Hash) (*task.Task, error)

Jump to

Keyboard shortcuts

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