backend

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2015 License: Apache-2.0 Imports: 6 Imported by: 77

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToProxy

func ConnectToProxy(proxyUrl string, handlers map[string]Handler)

func SignalHandlerClosed

func SignalHandlerClosed(msgKey string, response chan<- common.Message)

Types

type Handler

type Handler interface {
	Handle(messageKey string, initialMessage string, incomingMessages <-chan string, response chan<- common.Message)
}

Implement this iterface and pass implementations into ConnectToProxy() to have messages routed to and from the handler.

Jump to

Keyboard shortcuts

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