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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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