apihandler

package
v0.0.0-...-8e7039a Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routes = []httpapi.Route{

	httpapi.Route{
		Method:  "GET",
		Path:    "/status",
		Handler: agentStatus,
	},
	httpapi.Route{
		Method:  "GET",
		Path:    "/key",
		Handler: agentKey,
	},

	httpapi.Route{
		Method:  "POST",
		Path:    "/jobs",
		Handler: newJob,
	},
	httpapi.Route{
		Method:  "GET",
		Path:    "/jobs",
		Handler: jobList,
	},
	httpapi.Route{
		Method:  "GET",
		Path:    "/jobs/:id",
		Handler: jobStatus,
	},
	httpapi.Route{
		Method:  "DELETE",
		Path:    "/jobs/:id",
		Handler: cancelJob,
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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