Documentation
¶
Index ¶
- func PostStop(rc *gwcommon.RouteConfig) error
- func RouteActiveHandler(writer http.ResponseWriter, request *http.Request, rc *gwcommon.RouteConfig)
- type SNSEventSourceExecutor
- func (ese *SNSEventSourceExecutor) PostActivate(rc *gwcommon.RouteConfig) error
- func (ese *SNSEventSourceExecutor) StartEventSource(eventSource *gateways.EventSource, ...) error
- func (ese *SNSEventSourceExecutor) ValidateEventSource(ctx context.Context, es *gateways.EventSource) (*gateways.ValidEventSource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostStop ¶
func PostStop(rc *gwcommon.RouteConfig) error
PostStop unsubscribes from the sns topic
func RouteActiveHandler ¶
func RouteActiveHandler(writer http.ResponseWriter, request *http.Request, rc *gwcommon.RouteConfig)
RouteActiveHandler handles new routes
Types ¶
type SNSEventSourceExecutor ¶
type SNSEventSourceExecutor struct { Log zerolog.Logger // Clientset is kubernetes client Clientset kubernetes.Interface // Namespace where gateway is deployed Namespace string }
SNSEventSourceExecutor implements Eventing
func (*SNSEventSourceExecutor) PostActivate ¶
func (ese *SNSEventSourceExecutor) PostActivate(rc *gwcommon.RouteConfig) error
PostActivate subscribes to the sns topic
func (*SNSEventSourceExecutor) StartEventSource ¶
func (ese *SNSEventSourceExecutor) StartEventSource(eventSource *gateways.EventSource, eventStream gateways.Eventing_StartEventSourceServer) error
StartEventSource starts an SNS event source
func (*SNSEventSourceExecutor) ValidateEventSource ¶
func (ese *SNSEventSourceExecutor) ValidateEventSource(ctx context.Context, es *gateways.EventSource) (*gateways.ValidEventSource, error)
ValidateEventSource validates gateway event source
Click to show internal directories.
Click to hide internal directories.