Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountHelloController ¶
func MountHelloController(service *goa.Service, ctrl HelloController)
MountHelloController "mounts" a Hello resource controller on the given service.
Types ¶
type Hello ¶
type Hello struct { // What was said Hello string `form:"hello" json:"hello" xml:"hello"` }
Hello World (default view)
Identifier: application/vnd.hello+json; view=default
type HelloController ¶
type HelloController interface { goa.Muxer Show(*ShowHelloContext) error }
HelloController is the controller interface for the Hello actions.
type ShowHelloContext ¶
type ShowHelloContext struct { context.Context *goa.ResponseData *goa.RequestData WhatToSay string }
ShowHelloContext provides the hello show action context.
func NewShowHelloContext ¶
func NewShowHelloContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowHelloContext, error)
NewShowHelloContext parses the incoming request URL and body, performs validations and creates the context used by the hello controller show action.
func (*ShowHelloContext) NotFound ¶
func (ctx *ShowHelloContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*ShowHelloContext) OK ¶
func (ctx *ShowHelloContext) OK(r *Hello) error
OK sends a HTTP response with status code 200.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.