consumer

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerLayer

type ConsumerLayer struct {
	layer.BaseLayer
	// contains filtered or unexported fields
}

func NewConsumerLayer

func NewConsumerLayer() *ConsumerLayer

func (*ConsumerLayer) AnnounceNexus

func (c *ConsumerLayer) AnnounceNexus(belowNexus nexus.Nexus)

AnnounceNexus creates a new consumer.ConsumerNexus and starts the handshake

func (*ConsumerLayer) ConsumerFinishedCb

func (c *ConsumerLayer) ConsumerFinishedCb(consumerNexus consumer.ConsumerNexus)

consume finished

func (*ConsumerLayer) OnPing

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

event fired on ping

func (*ConsumerLayer) RegisterAboveLayer

func (c *ConsumerLayer) RegisterAboveLayer(belowLayer layer.Layer)

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

func (*ConsumerLayer) RevokeNexus

func (c *ConsumerLayer) RevokeNexus(belowNexus nexus.Nexus)

func (*ConsumerLayer) SetOnPing

func (c *ConsumerLayer) SetOnPing(fn consumer.OnPingFn)

func (*ConsumerLayer) SetupConsumerNexus

func (c *ConsumerLayer) SetupConsumerNexus(belowNexus nexus.Nexus)

initialize consumer nexus and tie the onping event back to this layer

Jump to

Keyboard shortcuts

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