slack

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 19 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 {
	// K8sClient is kubernetes client
	K8sClient kubernetes.Interface
	// Logger logs stuff
	Logger    *logrus.Logger
	Namespace string
}

EventListener implements Eventing for slack event source

func (*EventListener) StartEventSource

func (listener *EventListener) StartEventSource(eventSource *gateways.EventSource, eventStream gateways.Eventing_StartEventSourceServer) error

StartEventSource starts a event source

func (*EventListener) ValidateEventSource

func (listener *EventListener) ValidateEventSource(ctx context.Context, eventSource *gateways.EventSource) (*gateways.ValidEventSource, error)

ValidateEventSource validates slack event source

type Router

type Router struct {
	// contains filtered or unexported fields
}

Router contains information about a REST endpoint

func (*Router) GetRoute

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

GetRoute returns the route

func (*Router) HandleRoute

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

HandleRoute handles incoming requests on the route

func (*Router) PostActivate

func (rc *Router) PostActivate() error

PostActivate performs operations once the route is activated and ready to consume requests

func (*Router) PostInactivate

func (rc *Router) PostInactivate() error

PostInactivate performs operations after the route is inactivated

Jump to

Keyboard shortcuts

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