Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountOperandsController ¶
func MountOperandsController(service *goa.Service, ctrl OperandsController)
MountOperandsController "mounts" a Operands resource controller on the given service.
Types ¶
type AddOperandsContext ¶
type AddOperandsContext struct { context.Context *goa.ResponseData *goa.RequestData Left int Right int }
AddOperandsContext provides the operands add action context.
func NewAddOperandsContext ¶
func NewAddOperandsContext(ctx context.Context, r *http.Request, service *goa.Service) (*AddOperandsContext, error)
NewAddOperandsContext parses the incoming request URL and body, performs validations and creates the context used by the operands controller add action.
func (*AddOperandsContext) OK ¶
func (ctx *AddOperandsContext) OK(resp []byte) error
OK sends a HTTP response with status code 200.
type OperandsController ¶
type OperandsController interface { goa.Muxer Add(*AddOperandsContext) error }
OperandsController is the controller interface for the Operands actions.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.