app

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountWebController

func MountWebController(service *goa.Service, ctrl WebController)

MountWebController "mounts" a Web resource controller on the given service.

func MountWorkflowController

func MountWorkflowController(service *goa.Service, ctrl WorkflowController)

MountWorkflowController "mounts" a Workflow resource controller on the given service.

func WorkflowHref

func WorkflowHref(workflowID interface{}) string

WorkflowHref returns the resource href.

Types

type AddLinkWorkflowContext

type AddLinkWorkflowContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	WorkflowID string
}

AddLinkWorkflowContext provides the workflow addLink action context.

func NewAddLinkWorkflowContext

func NewAddLinkWorkflowContext(ctx context.Context, r *http.Request, service *goa.Service) (*AddLinkWorkflowContext, error)

NewAddLinkWorkflowContext parses the incoming request URL and body, performs validations and creates the context used by the workflow controller addLink action.

func (*AddLinkWorkflowContext) NotFound

func (ctx *AddLinkWorkflowContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*AddLinkWorkflowContext) OK

func (ctx *AddLinkWorkflowContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type DeleteLinkWorkflowContext

type DeleteLinkWorkflowContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	LinkID     string
	WorkflowID string
}

DeleteLinkWorkflowContext provides the workflow deleteLink action context.

func NewDeleteLinkWorkflowContext

func NewDeleteLinkWorkflowContext(ctx context.Context, r *http.Request, service *goa.Service) (*DeleteLinkWorkflowContext, error)

NewDeleteLinkWorkflowContext parses the incoming request URL and body, performs validations and creates the context used by the workflow controller deleteLink action.

func (*DeleteLinkWorkflowContext) NotFound

func (ctx *DeleteLinkWorkflowContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*DeleteLinkWorkflowContext) OK

func (ctx *DeleteLinkWorkflowContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type MoveLinkWorkflowContext

type MoveLinkWorkflowContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	LinkID     string
	WorkflowID string
}

MoveLinkWorkflowContext provides the workflow moveLink action context.

func NewMoveLinkWorkflowContext

func NewMoveLinkWorkflowContext(ctx context.Context, r *http.Request, service *goa.Service) (*MoveLinkWorkflowContext, error)

NewMoveLinkWorkflowContext parses the incoming request URL and body, performs validations and creates the context used by the workflow controller moveLink action.

func (*MoveLinkWorkflowContext) NotFound

func (ctx *MoveLinkWorkflowContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*MoveLinkWorkflowContext) OK

func (ctx *MoveLinkWorkflowContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type ShowWorkflowContext

type ShowWorkflowContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	WorkflowID string
}

ShowWorkflowContext provides the workflow show action context.

func NewShowWorkflowContext

func NewShowWorkflowContext(ctx context.Context, r *http.Request, service *goa.Service) (*ShowWorkflowContext, error)

NewShowWorkflowContext parses the incoming request URL and body, performs validations and creates the context used by the workflow controller show action.

func (*ShowWorkflowContext) NotFound

func (ctx *ShowWorkflowContext) NotFound() error

NotFound sends a HTTP response with status code 404.

func (*ShowWorkflowContext) OK

func (ctx *ShowWorkflowContext) OK(resp []byte) error

OK sends a HTTP response with status code 200.

type WebController

type WebController interface {
	goa.Muxer
	goa.FileServer
}

WebController is the controller interface for the Web actions.

type WorkflowController

type WorkflowController interface {
	goa.Muxer
	AddLink(*AddLinkWorkflowContext) error
	DeleteLink(*DeleteLinkWorkflowContext) error
	MoveLink(*MoveLinkWorkflowContext) error
	Show(*ShowWorkflowContext) error
}

WorkflowController is the controller interface for the Workflow actions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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