api

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

this func will block caller

Types

type ErrResp

type ErrResp struct {
	Error string `json:"error,omitempty"`
}

func NewErrResp

func NewErrResp(err error) *ErrResp

type QueryTaskReq

type QueryTaskReq struct {
	ProjectID uint64 `json:"projectID"                  binding:"required"`
	TaskID    string `json:"taskID"                     binding:"required"`
}

type QueryTaskResp

type QueryTaskResp struct {
	Time      time.Time `json:"time"`
	Processed bool      `json:"processed"`
	Error     string    `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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