Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountUserController ¶
func MountUserController(service *goa.Service, ctrl UserController)
MountUserController "mounts" a User resource controller on the given service.
Types ¶
type JSON ¶
type JSON struct { // Username ID string `form:"id" json:"id" xml:"id"` }
Credentials (default view)
Identifier: application/json; view=default
type LoginUserContext ¶
type LoginUserContext struct { context.Context *goa.ResponseData *goa.RequestData Username string }
LoginUserContext provides the user login action context.
func NewLoginUserContext ¶
NewLoginUserContext parses the incoming request URL and body, performs validations and creates the context used by the user controller login action.
func (*LoginUserContext) NotFound ¶
func (ctx *LoginUserContext) NotFound() error
NotFound sends a HTTP response with status code 404.
func (*LoginUserContext) OK ¶
func (ctx *LoginUserContext) OK(r *JSON) error
OK sends a HTTP response with status code 200.
type UserController ¶
type UserController interface { goa.Muxer Login(*LoginUserContext) error }
UserController is the controller interface for the User actions.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.