relay

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RelayLayer

type RelayLayer struct {
	layer.BaseLayer
	RendezvousLayer *rendezvous.IncomingRendezvousLayer
}

func NewRelayLayer

func NewRelayLayer(rendezvousLayer *rendezvous.IncomingRendezvousLayer) *RelayLayer

func (*RelayLayer) AnnounceNexus

func (r *RelayLayer) AnnounceNexus(rendezvousNexus nexusHelper.Nexus)

func (*RelayLayer) OnBinMessage

func (r *RelayLayer) OnBinMessage(rendezvousNexus nexusHelper.Nexus, msg []byte)

func (*RelayLayer) OnMessage

func (r *RelayLayer) OnMessage(rendezvousNexus nexusHelper.Nexus, msg base.MoneysocketMessage)

func (*RelayLayer) RegisterAboveLayer

func (r *RelayLayer) RegisterAboveLayer(belowLayer layer.Layer)

func (*RelayLayer) RevokeNexus

func (r *RelayLayer) RevokeNexus(rendezvousNexus nexusHelper.Nexus)

Jump to

Keyboard shortcuts

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