app

package
v0.0.0-...-4445e9e Latest Latest
Warning

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

Go to latest
Published: May 23, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MountHubController

func MountHubController(service *goa.Service, ctrl HubController)

MountHubController "mounts" a Hub resource controller on the given service.

Types

type HubController

type HubController interface {
	goa.Muxer
	Notify(*NotifyHubContext) error
	Verifiy(*VerifiyHubContext) error
}

HubController is the controller interface for the Hub actions.

type NotifyHubContext

type NotifyHubContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
}

NotifyHubContext provides the hub notify action context.

func NewNotifyHubContext

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

NewNotifyHubContext parses the incoming request URL and body, performs validations and creates the context used by the hub controller notify action.

func (*NotifyHubContext) OK

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

OK sends a HTTP response with status code 200.

type VerifiyHubContext

type VerifiyHubContext struct {
	context.Context
	*goa.ResponseData
	*goa.RequestData
	HubChallenge    *string
	HubLeaseSeconds *float64
	HubMode         string
	HubReason       *string
	HubTopic        string
}

VerifiyHubContext provides the hub verifiy action context.

func NewVerifiyHubContext

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

NewVerifiyHubContext parses the incoming request URL and body, performs validations and creates the context used by the hub controller verifiy action.

func (*VerifiyHubContext) OK

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

OK sends a HTTP response with status code 200.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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