consumer

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NexusName = "ConsumerNexus"

Variables

This section is empty.

Functions

This section is empty.

Types

type FinishedCb added in v0.54.0

type FinishedCb func(consumerNexus Nexus)

type Nexus added in v0.54.0

type Nexus struct {
	*base.NexusBase
	// contains filtered or unexported fields
}

func NewConsumerNexus

func NewConsumerNexus(belowNexus nexus.Nexus) *Nexus

func (*Nexus) ConsumerFinishedCb added in v0.54.0

func (c *Nexus) ConsumerFinishedCb()

func (*Nexus) IsLayerMessage added in v0.54.0

func (c *Nexus) IsLayerMessage(message base2.MoneysocketMessage) bool

func (*Nexus) OnBinMessage added in v0.54.0

func (c *Nexus) OnBinMessage(belowNexus nexus.Nexus, msg []byte)

func (*Nexus) OnMessage added in v0.54.0

func (c *Nexus) OnMessage(belowNexus nexus.Nexus, msg base2.MoneysocketMessage)

func (*Nexus) OnPing added in v0.54.0

func (c *Nexus) OnPing(consumerNexus nexus.Nexus, milliseconds int)

func (*Nexus) SendPing added in v0.54.0

func (c *Nexus) SendPing()

send a ping up the chain

func (*Nexus) SetOnPing added in v0.54.0

func (c *Nexus) SetOnPing(fn OnPingFn)

func (*Nexus) StartHandshake added in v0.54.0

func (c *Nexus) StartHandshake(cb FinishedCb)

func (*Nexus) StartPinging added in v0.54.0

func (c *Nexus) StartPinging()

start pining on a set interval

func (*Nexus) StopPinging added in v0.54.0

func (c *Nexus) StopPinging()

type OnPingFn

type OnPingFn func(nexus nexus.Nexus, msecs int)

Jump to

Keyboard shortcuts

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