Documentation ¶
Index ¶
- type IncomingLocalLayer
- type OutgoingLocalLayer
- func (o *OutgoingLocalLayer) AnnounceNexus(belowNexus nexus.Nexus)
- func (o *OutgoingLocalLayer) Connect(sharedSeed beacon.SharedSeed)
- func (o *OutgoingLocalLayer) Disconnect(sharedSeed beacon.SharedSeed)
- func (o *OutgoingLocalLayer) RegisterAboveLayer(belowLayer layer.Base)
- func (o *OutgoingLocalLayer) SetIncomingLayer(incomingLayer layer.Base)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IncomingLocalLayer ¶
IncomingLocalLayer is the incoming local layer.
func NewIncomingLocalLayer ¶
func NewIncomingLocalLayer() *IncomingLocalLayer
NewIncomingLocalLayer creates a new incoming local layer.
func (*IncomingLocalLayer) AnnounceNexus ¶
func (i *IncomingLocalLayer) AnnounceNexus(belowNexus nexus.Nexus)
AnnounceNexus creates a new LocalNexus and registers it.
func (*IncomingLocalLayer) RegisterAboveLayer ¶
func (i *IncomingLocalLayer) RegisterAboveLayer(belowLayer layer.Base)
RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer.
type OutgoingLocalLayer ¶
type OutgoingLocalLayer struct { layer.BaseLayer // IncomingLocalLayer processes incoming websockets IncomingLocalLayer layer.Base OutgoingBySharedSeed map[string]nexus.Nexus IncomingBySharedSeed map[string]nexus.Nexus }
OutgoingLocalLayer handles websocket connections.
func NewOutgoingLocalLayer ¶
func NewOutgoingLocalLayer() OutgoingLocalLayer
NewOutgoingLocalLayer creates a new OutgoingLocalLayer.
func (*OutgoingLocalLayer) AnnounceNexus ¶
func (o *OutgoingLocalLayer) AnnounceNexus(belowNexus nexus.Nexus)
AnnounceNexus creates a new local.LocalNexus and registers it.
func (*OutgoingLocalLayer) Connect ¶
func (o *OutgoingLocalLayer) Connect(sharedSeed beacon.SharedSeed)
Connect connects an incoming and outgoing nexus.
func (*OutgoingLocalLayer) Disconnect ¶
func (o *OutgoingLocalLayer) Disconnect(sharedSeed beacon.SharedSeed)
Disconnect revokes incoming/outgoing connection.
func (*OutgoingLocalLayer) RegisterAboveLayer ¶
func (o *OutgoingLocalLayer) RegisterAboveLayer(belowLayer layer.Base)
RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer.
func (*OutgoingLocalLayer) SetIncomingLayer ¶
func (o *OutgoingLocalLayer) SetIncomingLayer(incomingLayer layer.Base)
SetIncomingLayer sets the incoming layer to pass messages to.