Documentation ¶
Index ¶
- func CreatePurchaseBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func CreatePurchaseConflict(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func CreatePurchaseCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowPurchaseBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowPurchaseNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowPurchaseOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.Purchase)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePurchaseBadRequest ¶
func CreatePurchaseBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.PurchaseController, payload *app.PurchasePayload) http.ResponseWriter
CreatePurchaseBadRequest runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreatePurchaseConflict ¶
func CreatePurchaseConflict(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.PurchaseController, payload *app.PurchasePayload) http.ResponseWriter
CreatePurchaseConflict runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func CreatePurchaseCreated ¶
func CreatePurchaseCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.PurchaseController, payload *app.PurchasePayload) http.ResponseWriter
CreatePurchaseCreated runs the method Create of the given controller with the given parameters and payload. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowPurchaseBadRequest ¶
func ShowPurchaseBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.PurchaseController, transactionID string) http.ResponseWriter
ShowPurchaseBadRequest runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowPurchaseNotFound ¶
func ShowPurchaseNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.PurchaseController, transactionID string) http.ResponseWriter
ShowPurchaseNotFound runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
func ShowPurchaseOK ¶
func ShowPurchaseOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.PurchaseController, transactionID string) (http.ResponseWriter, *app.Purchase)
ShowPurchaseOK runs the method Show of the given controller with the given parameters. It returns the response writer so it's possible to inspect the response headers and the media type struct written to the response. If ctx is nil then context.Background() is used. If service is nil then a default service is created.
Types ¶
This section is empty.