transceiver

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2016 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SingletonLocalTransceiver = LocalTransceiver{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type LocalTransceiver

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

func (*LocalTransceiver) SendEvent

func (this *LocalTransceiver) SendEvent(event Event) (chan Action, error)

func (*LocalTransceiver) Start

func (this *LocalTransceiver) Start()

type RESTTransceiver

type RESTTransceiver struct {
	OrchestratorURL string
	EntityID        string
	Client          *http.Client
	// contains filtered or unexported fields
}

func (*RESTTransceiver) SendEvent

func (this *RESTTransceiver) SendEvent(event Event) (chan Action, error)

func (*RESTTransceiver) Start

func (this *RESTTransceiver) Start()

type Transceiver

type Transceiver interface {
	SendEvent(event signal.Event) (chan signal.Action, error)
	Start()
}

func NewRESTTransceiver

func NewRESTTransceiver(orchestratorURL string, entityID string) (Transceiver, error)

func NewTransceiver

func NewTransceiver(orchestratorURL string, entityID string) (Transceiver, error)

Jump to

Keyboard shortcuts

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