relay

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relay

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

Relay relays messages to/from terminus

func NewRelay

func NewRelay(config *config.Config) Relay

NewRelay creates a new relay from a config and starts a looping info call

func (*Relay) OnStackEvent

func (r *Relay) OnStackEvent(layerName string, nexus nexusHelper.Nexus, event string)

func (*Relay) OutputInfo added in v0.53.0

func (r *Relay) OutputInfo()

func (*Relay) RunApp

func (r *Relay) RunApp() error

RunApp listens on the relay url

func (*Relay) SetupRelayLayer

func (r *Relay) SetupRelayLayer(rendezvousLayer *rendezvous.IncomingRendezvousLayer) *Relay

SetupRelayLayer sets up a relay.RelayLayer and registers it

func (*Relay) SetupRendezvousLayer

func (r *Relay) SetupRendezvousLayer(belowLayer layer.Layer) *Relay

SetupRendezvousLayer sets up a rendezvous.Rendezvous layer and registers it

func (*Relay) SetupWebsocketLayer

func (r *Relay) SetupWebsocketLayer() *Relay

SetupWebsocketLayer sets up a websocket.WebsocketLayer and registers it

Jump to

Keyboard shortcuts

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