Documentation
¶
Index ¶
- func DecodeBuildRequest(r *http.Request) (interface{}, error)
- func DecodeEmptyRequest(r *http.Request) (interface{}, error)
- func EncodeResponse(w http.ResponseWriter, response interface{}) error
- func MakeLaunchBuildEndpoint(svc service.BuildService) endpoint.Endpoint
- type CoreRequest
- type LaunchBuildRequest
- type LaunchBuildResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBuildRequest ¶
func DecodeEmptyRequest ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.