server

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(backoff *wait.Backoff, conn func() error) error

General connection helper

func HandleEventsFromEventSource

func HandleEventsFromEventSource(name string, eventStream gateways.Eventing_StartEventSourceServer, channels *Channels, logger *logrus.Logger)

HandleEventsFromEventSource handles events from the event source.

func Recover

func Recover(eventSource string)

Recover recovers from panics in event sources

func StartGateway

func StartGateway(es gateways.EventingServer)

StartGateway start a gateway

Types

type Channels

type Channels struct {
	Data chan []byte
	Stop chan struct{}
	Done chan struct{}
}

Channels holds the necessary channels for gateway server to process.

func NewChannels

func NewChannels() *Channels

NewChannels returns an instance of channels.

Directories

Path Synopsis
cmd command
cmd command
cmd command
cmd command
cmd command
aws
cmd command
cmd command
cmd command
cmd command
cmd command
cmd command
cmd command
cmd command
cmd command
cmd command
nsq
cmd command
cmd command
cmd command
cmd command
cmd command
cmd command
cmd command

Jump to

Keyboard shortcuts

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