websocket

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IncomingWebsocketLayer

type IncomingWebsocketLayer struct {
	layer.BaseLayer
	Config         *config.Config
	IncomingSocket *websocket.IncomingSocket
	WebsocketNexus *websocket.WebsocketNexus
}

func NewIncomingWebsocketLayer

func NewIncomingWebsocketLayer(config *config.Config) *IncomingWebsocketLayer

func (*IncomingWebsocketLayer) AnnounceNexus

func (i *IncomingWebsocketLayer) AnnounceNexus(belowNexus nexusHelper.Nexus)

func (*IncomingWebsocketLayer) Listen

func (i *IncomingWebsocketLayer) Listen(wsUrl string, tlsInfo *ws_server.TlsInfo) (err error)

func (*IncomingWebsocketLayer) RegisterAboveLayer

func (i *IncomingWebsocketLayer) RegisterAboveLayer(belowLayer layer.Layer)

func (*IncomingWebsocketLayer) StopListening

func (i *IncomingWebsocketLayer) StopListening()

type OutgoingWebsocketLayer

type OutgoingWebsocketLayer struct {
	layer.BaseLayer
	NexusBySharedSeed      layer.NexusStringMap
	OutgoingSocketProtocol nws.OutgoingSocket
}

TODO this needs to be fully implemented

func NewOutgoingWebsocketLayer

func NewOutgoingWebsocketLayer() *OutgoingWebsocketLayer

func (*OutgoingWebsocketLayer) AnnounceNexus

func (o *OutgoingWebsocketLayer) AnnounceNexus(belowNexus nexus.Nexus)

func (*OutgoingWebsocketLayer) Connect

func (*OutgoingWebsocketLayer) InitiateCloseAll

func (o *OutgoingWebsocketLayer) InitiateCloseAll()

func (*OutgoingWebsocketLayer) RegisterAboveLayer

func (o *OutgoingWebsocketLayer) RegisterAboveLayer(belowLayer layer.Layer)

Jump to

Keyboard shortcuts

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