Documentation ¶
Index ¶
- func CreateBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, error)
- func CreateBottleCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.Bottle)
- func CreateBottleInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowBottleNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowBottleOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.Bottle)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBottleBadRequest ¶
func CreateBottleBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, payload *app.BottlePayload) (http.ResponseWriter, error)
CreateBottleBadRequest 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 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.
func CreateBottleCreated ¶
func CreateBottleCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, payload *app.BottlePayload) (http.ResponseWriter, *app.Bottle)
CreateBottleCreated 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 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.
func CreateBottleInternalServerError ¶
func CreateBottleInternalServerError(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, payload *app.BottlePayload) http.ResponseWriter
CreateBottleInternalServerError 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 ShowBottleNotFound ¶
func ShowBottleNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, id string) http.ResponseWriter
ShowBottleNotFound 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 ShowBottleOK ¶
func ShowBottleOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.BottleController, id string) (http.ResponseWriter, *app.Bottle)
ShowBottleOK 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.