Documentation ¶
Index ¶
- func CreateHeroBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, error)
- func CreateHeroCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ListHeroOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, app.HeroCollection)
- func ShowHeroNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) http.ResponseWriter
- func ShowHeroOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ...) (http.ResponseWriter, *app.Hero)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHeroBadRequest ¶
func CreateHeroBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.HeroController, payload *app.CreateHeroPayload) (http.ResponseWriter, error)
CreateHeroBadRequest 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 CreateHeroCreated ¶
func CreateHeroCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.HeroController, payload *app.CreateHeroPayload) http.ResponseWriter
CreateHeroCreated 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 ListHeroOK ¶
func ListHeroOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.HeroController) (http.ResponseWriter, app.HeroCollection)
ListHeroOK runs the method List 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.
func ShowHeroNotFound ¶
func ShowHeroNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.HeroController, heroID int) http.ResponseWriter
ShowHeroNotFound 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 ShowHeroOK ¶
func ShowHeroOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.HeroController, heroID int) (http.ResponseWriter, *app.Hero)
ShowHeroOK 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.