controllers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCallback

func HandleCallback(data string) error

func ListTask

func ListTask() ([]dao.Task, error)

Types

type CreateTask

type CreateTask struct {
	Protocol string          `json:"protocol"`
	Data     json.RawMessage `json:"data"`
}

func (*CreateTask) Handle

func (c *CreateTask) Handle(data string) (*dao.Task, error)

type GenericTask

type GenericTask struct {
	ID int `json:"id"`
}

func (*GenericTask) Delete

func (task *GenericTask) Delete() error

func (*GenericTask) Search

func (g *GenericTask) Search() (*dao.Task, error)

func (*GenericTask) Start

func (g *GenericTask) Start(masterAddr, webAddr string) error

func (*GenericTask) Stop

func (g *GenericTask) Stop(masterAddr string) error

Jump to

Keyboard shortcuts

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