Documentation
¶
Index ¶
- type NexusBase
- func (b *NexusBase) CheckCrossedNexus(belowNexus nexus.Nexus)
- func (b NexusBase) GetDownwardNexusList() (belowList []nexus.Nexus)
- func (b *NexusBase) InitiateClose()
- func (b *NexusBase) IsEqual(n nexus.Nexus) bool
- func (b *NexusBase) Name() string
- func (b *NexusBase) OnBinMessage(belowNexus nexus.Nexus, msg []byte)
- func (b *NexusBase) OnMessage(belowNexus nexus.Nexus, msg base.MoneysocketMessage)
- func (b *NexusBase) Send(msg base.MoneysocketMessage) error
- func (b *NexusBase) SendBin(msg []byte) error
- func (b *NexusBase) SetOnBinMessage(messageBinFunc nexus.OnBinMessage)
- func (b *NexusBase) SetOnMessage(messageFunc nexus.OnMessage)
- func (b NexusBase) SharedSeed() *beacon.SharedSeed
- func (b *NexusBase) UUID() uuid.UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NexusBase ¶ added in v0.54.0
type NexusBase struct { BelowNexus *nexus.Nexus Layer layer.Base // contains filtered or unexported fields }
NexusBase is the nexus superclass. It contains common functions for a nexus.
func NewBaseNexus ¶
NewBaseNexus creates a new nexus base.
func NewBaseNexusBelow ¶
NewBaseNexusBelow creates a new base nexus and sets the below nexus.
func NewBaseNexusFull ¶
NewBaseNexusFull creates a new base nexus and sets a below nexus/layer for comms.
func (*NexusBase) CheckCrossedNexus ¶ added in v0.54.0
CheckCrossedNexus checks if the nexus has been crossed.
func (NexusBase) GetDownwardNexusList ¶ added in v0.54.0
GetDownwardNexusList gets the nexus list.
func (*NexusBase) InitiateClose ¶ added in v0.54.0
func (b *NexusBase) InitiateClose()
InitiateClose closes the websocket.
func (*NexusBase) OnBinMessage ¶ added in v0.54.0
OnBinMessage calls the binary message method.
func (*NexusBase) OnMessage ¶ added in v0.54.0
func (b *NexusBase) OnMessage(belowNexus nexus.Nexus, msg base.MoneysocketMessage)
OnMessage handles the message callback.
func (*NexusBase) Send ¶ added in v0.54.0
func (b *NexusBase) Send(msg base.MoneysocketMessage) error
Send sends a message.
func (*NexusBase) SetOnBinMessage ¶ added in v0.54.0
func (b *NexusBase) SetOnBinMessage(messageBinFunc nexus.OnBinMessage)
SetOnBinMessage sets the binary message callback function.
func (*NexusBase) SetOnMessage ¶ added in v0.54.0
SetOnMessage sets the message callback function.
func (NexusBase) SharedSeed ¶ added in v0.54.0
func (b NexusBase) SharedSeed() *beacon.SharedSeed
SharedSeed gets the shared seed.