relay

package
v0.88.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 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)

OnStackEvent is used for any events that bubble up to Relay.

func (*Relay) OutputInfo added in v0.53.0

func (r *Relay) OutputInfo()

OutputInfo gets nexus count on a relay.

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.Base) *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