local

package
v0.53.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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IncomingLocalLayer

type IncomingLocalLayer struct {
	layer.BaseLayer
}

func NewIncomingLocalLayer

func NewIncomingLocalLayer() *IncomingLocalLayer

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.Layer)

RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer

type OutgoingLocalLayer

type OutgoingLocalLayer struct {
	layer.BaseLayer
	IncomingLocalLayer   layer.Layer
	OutgoingBySharedSeed map[string]nexus.Nexus
	IncomingBySharedSeed map[string]nexus.Nexus
}

func NewOutgoingLocalLayer

func NewOutgoingLocalLayer() 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)

func (*OutgoingLocalLayer) Disconnect

func (o *OutgoingLocalLayer) Disconnect(sharedSeed beacon.SharedSeed)

func (*OutgoingLocalLayer) RegisterAboveLayer

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

RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer

func (*OutgoingLocalLayer) SetIncomingLayer

func (o *OutgoingLocalLayer) SetIncomingLayer(incomingLayer layer.Layer)

Jump to

Keyboard shortcuts

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