transport

package
v0.0.0-...-51273b1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBuildRequest

func DecodeBuildRequest(r *http.Request) (interface{}, error)

func DecodeEmptyRequest

func DecodeEmptyRequest(r *http.Request) (interface{}, error)

func EncodeResponse

func EncodeResponse(w http.ResponseWriter, response interface{}) error

func MakeLaunchBuildEndpoint

func MakeLaunchBuildEndpoint(svc service.BuildService) endpoint.Endpoint

Types

type CoreRequest

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

CoreRequest contains the two fields every request should have: a correlation ID and a user ID.

type LaunchBuildRequest

type LaunchBuildRequest struct {
	CoreRequest
	Name string `json:name`
}

type LaunchBuildResponse

type LaunchBuildResponse struct {
	Name  string `json:name`
	Error string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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