consumer

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ConsumerNexusName = "ConsumerNexus"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerFinishedCb

type ConsumerFinishedCb func(consumerNexus ConsumerNexus)

type ConsumerNexus

type ConsumerNexus struct {
	*base.BaseNexus
	// contains filtered or unexported fields
}

func NewConsumerNexus

func NewConsumerNexus(belowNexus nexus.Nexus) *ConsumerNexus

func (*ConsumerNexus) ConsumerFinishedCb

func (c *ConsumerNexus) ConsumerFinishedCb()

func (*ConsumerNexus) OnBinMessage

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

func (*ConsumerNexus) OnMessage

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

func (*ConsumerNexus) OnPing

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

func (*ConsumerNexus) SendPing

func (c *ConsumerNexus) SendPing()

send a ping up the chain

func (*ConsumerNexus) SetOnPing

func (c *ConsumerNexus) SetOnPing(fn OnPingFn)

func (*ConsumerNexus) StartHandshake

func (c *ConsumerNexus) StartHandshake(cb ConsumerFinishedCb)

func (*ConsumerNexus) StartPinging

func (c *ConsumerNexus) StartPinging()

start pining on a set interval

func (*ConsumerNexus) StopPinging

func (c *ConsumerNexus) 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