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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.