awssns

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventListener

type EventListener struct {
	EventSourceName string
	EventName       string
	SNSEventSource  v1alpha1.SNSEventSource
	Metrics         *metrics.Metrics
}

EventListener implements Eventing for aws sns event source

func (*EventListener) GetEventName

func (el *EventListener) GetEventName() string

GetEventName returns name of event

func (*EventListener) GetEventSourceName

func (el *EventListener) GetEventSourceName() string

GetEventSourceName returns name of event source

func (*EventListener) GetEventSourceType

func (el *EventListener) GetEventSourceType() apicommon.EventSourceType

GetEventSourceType return type of event server

func (*EventListener) StartListening

func (el *EventListener) StartListening(ctx context.Context, dispatch func([]byte, ...eventsourcecommon.Options) error) error

StartListening starts an SNS event source

func (*EventListener) ValidateEventSource

func (listener *EventListener) ValidateEventSource(ctx context.Context) error

ValidateEventSource validates sns event source

type Router

type Router struct {
	// Route contains webhook context and configuration related to api route
	Route *webhook.Route
	// contains filtered or unexported fields
}

Router contains information for a route

func (*Router) GetRoute

func (router *Router) GetRoute() *webhook.Route

GetRoute returns the route

func (*Router) HandleRoute

func (router *Router) HandleRoute(writer http.ResponseWriter, request *http.Request)

HandleRoute handles new routes

func (*Router) PostActivate

func (router *Router) PostActivate() error

PostActivate refers to operations performed after a route is successfully activated

func (*Router) PostInactivate

func (router *Router) PostInactivate() error

PostInactivate refers to operations performed after a route is successfully inactivated

Jump to

Keyboard shortcuts

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