Documentation ¶
Index ¶
- func DecodeFiveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func FiveTasksPath() string
- func NewFiveBadRequest(body *FiveBadRequestResponseBody) *goa.ServiceError
- func NewFiveForbidden(body *FiveForbiddenResponseBody) *goa.ServiceError
- func NewFiveNotFound(body *FiveNotFoundResponseBody) *goa.ServiceError
- func NewFiveUnauthorized(body FiveUnauthorizedResponseBody) tasks.Unauthorized
- func ValidateFiveBadRequestResponseBody(body *FiveBadRequestResponseBody) (err error)
- func ValidateFiveForbiddenResponseBody(body *FiveForbiddenResponseBody) (err error)
- func ValidateFiveNotFoundResponseBody(body *FiveNotFoundResponseBody) (err error)
- type Client
- type FiveBadRequestResponseBody
- type FiveForbiddenResponseBody
- type FiveNotFoundResponseBody
- type FiveUnauthorizedResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeFiveResponse ¶
func DecodeFiveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeFiveResponse returns a decoder for responses returned by the tasks five endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeFiveResponse may return the following errors:
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- "unauthorized" (type tasks.Unauthorized): http.StatusUnauthorized
- error: internal error
func FiveTasksPath ¶
func FiveTasksPath() string
FiveTasksPath returns the URL path to the tasks service five HTTP endpoint.
func NewFiveBadRequest ¶
func NewFiveBadRequest(body *FiveBadRequestResponseBody) *goa.ServiceError
NewFiveBadRequest builds a tasks service five endpoint bad-request error.
func NewFiveForbidden ¶
func NewFiveForbidden(body *FiveForbiddenResponseBody) *goa.ServiceError
NewFiveForbidden builds a tasks service five endpoint forbidden error.
func NewFiveNotFound ¶
func NewFiveNotFound(body *FiveNotFoundResponseBody) *goa.ServiceError
NewFiveNotFound builds a tasks service five endpoint not-found error.
func NewFiveUnauthorized ¶
func NewFiveUnauthorized(body FiveUnauthorizedResponseBody) tasks.Unauthorized
NewFiveUnauthorized builds a tasks service five endpoint unauthorized error.
func ValidateFiveBadRequestResponseBody ¶
func ValidateFiveBadRequestResponseBody(body *FiveBadRequestResponseBody) (err error)
ValidateFiveBadRequestResponseBody runs the validations defined on five_bad-request_response_body
func ValidateFiveForbiddenResponseBody ¶
func ValidateFiveForbiddenResponseBody(body *FiveForbiddenResponseBody) (err error)
ValidateFiveForbiddenResponseBody runs the validations defined on five_forbidden_response_body
func ValidateFiveNotFoundResponseBody ¶
func ValidateFiveNotFoundResponseBody(body *FiveNotFoundResponseBody) (err error)
ValidateFiveNotFoundResponseBody runs the validations defined on five_not-found_response_body
Types ¶
type Client ¶
type Client struct { // Five Doer is the HTTP client used to make requests to the five endpoint. FiveDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the tasks service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the tasks service servers.
func (*Client) BuildFiveRequest ¶
BuildFiveRequest instantiates a HTTP request object with method and path set to call the "tasks" service "five" endpoint
type FiveBadRequestResponseBody ¶
type FiveBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
FiveBadRequestResponseBody is the type of the "tasks" service "five" endpoint HTTP response body for the "bad-request" error.
type FiveForbiddenResponseBody ¶
type FiveForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
FiveForbiddenResponseBody is the type of the "tasks" service "five" endpoint HTTP response body for the "forbidden" error.
type FiveNotFoundResponseBody ¶
type FiveNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
FiveNotFoundResponseBody is the type of the "tasks" service "five" endpoint HTTP response body for the "not-found" error.
type FiveUnauthorizedResponseBody ¶
type FiveUnauthorizedResponseBody string
FiveUnauthorizedResponseBody is the type of the "tasks" service "five" endpoint HTTP response body for the "unauthorized" error.