Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller contains handlers for controller REST API
func New ¶
func New(ctx *context.Provider, opts ...Opt) (*Controller, error)
New returns new controller REST API instance.
func (*Controller) GetOperations ¶
func (c *Controller) GetOperations() []operation.Handler
GetOperations returns all controller REST API endpoints
type Opt ¶
type Opt func(opts *allOpts)
Opt represents a REST Api option.
func WithAutoAccept ¶ added in v0.1.1
WithAutoAccept is an option allowing for the auto accept to be set.
func WithDefaultLabel ¶
WithDefaultLabel is an option allowing for the defaultLabel to be set.
func WithMessageHandler ¶ added in v0.1.1
func WithMessageHandler(handler operation.MessageHandler) Opt
WithMessageHandler is an option allowing for the message handler to be set.
func WithWebhookURLs ¶
WithWebhookURLs is an option for setting up a webhook dispatcher which will notify clients of events
Click to show internal directories.
Click to hide internal directories.