routes

package
v0.0.0-...-c22faea Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2014 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateBuild  = "CreateBuild"
	GetBuild     = "GetBuild"
	UploadBits   = "UploadBits"
	DownloadBits = "DownloadBits"
	SetResult    = "SetResult"
	GetResult    = "GetResult"
	LogInput     = "LogInput"
	LogOutput    = "LogOutput"
)

Variables

View Source
var Routes = router.Routes{
	{Path: "/builds", Method: "POST", Handler: CreateBuild},
	{Path: "/builds", Method: "GET", Handler: GetBuild},

	{Path: "/builds/:guid/bits", Method: "POST", Handler: UploadBits},
	{Path: "/builds/:guid/bits", Method: "GET", Handler: DownloadBits},

	{Path: "/builds/:guid/result", Method: "PUT", Handler: SetResult},
	{Path: "/builds/:guid/result", Method: "GET", Handler: GetResult},

	{Path: "/builds/:guid/log/input", Method: "GET", Handler: LogInput},
	{Path: "/builds/:guid/log/output", Method: "GET", Handler: LogOutput},
}

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