processor

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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 HandleTasks, 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 {
	UnprocessedTasks(projectID string) ([]common.Hash, error)
	UnprocessedProjects() (map[string]uint64, error)
	ProcessTasks(taskIDs []common.Hash, err error) error
}

type HandleTasks added in v0.26.0

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

type Project

type Project func(projectID string) (*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