app

package
v0.0.0-...-84d5eb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 4 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL