client

package
v0.0.0-...-b9360c4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

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

func (c *Client) BuildFiveRequest(ctx context.Context, v interface{}) (*http.Request, error)

BuildFiveRequest instantiates a HTTP request object with method and path set to call the "tasks" service "five" endpoint

func (*Client) Five

func (c *Client) Five() goa.Endpoint

Five returns an endpoint that makes HTTP requests to the tasks service five server.

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.

Jump to

Keyboard shortcuts

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