api

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(address string, db *db.DB, retrieve RetrieveTask) error

this func will block caller

Types

type CreateTaskReq

type CreateTaskReq struct {
	TaskID common.Hash `json:"taskID"                     binding:"required"`
}

type RetrieveTask

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