rest

package
v0.0.0-...-ae3da92 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TaskID = "task-id"

TaskID is a constant for task-id

Variables

This section is empty.

Functions

func NewService

func NewService() *restful.WebService

NewService return definition of the metrics service.

Types

type TaskREST

type TaskREST struct {
	// contains filtered or unexported fields
}

TaskREST is a REST wrapper around API.

func (*TaskREST) DeleteTask

func (t *TaskREST) DeleteTask(req *restful.Request, resp *restful.Response)

DeleteTask deletes task.

func (*TaskREST) GetTask

func (t *TaskREST) GetTask(req *restful.Request, resp *restful.Response)

GetTask returns task with the given id.

func (*TaskREST) ListTasks

func (t *TaskREST) ListTasks(req *restful.Request, resp *restful.Response)

ListTasks lists tasks.

func (*TaskREST) SaveTask

func (t *TaskREST) SaveTask(req *restful.Request, resp *restful.Response)

SaveTask saves task.

Jump to

Keyboard shortcuts

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