Documentation ¶
Index ¶
- type ConsumerLayer
- func (c *ConsumerLayer) AnnounceNexus(belowNexus nexus.Nexus)
- func (c *ConsumerLayer) ConsumerFinishedCb(consumerNexus consumer.ConsumerNexus)
- func (c *ConsumerLayer) OnPing(consumerNexus nexus.Nexus, milliseconds int)
- func (c *ConsumerLayer) RegisterAboveLayer(belowLayer layer.Layer)
- func (c *ConsumerLayer) RevokeNexus(belowNexus nexus.Nexus)
- func (c *ConsumerLayer) SetOnPing(fn consumer.OnPingFn)
- func (c *ConsumerLayer) SetupConsumerNexus(belowNexus nexus.Nexus)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerLayer ¶
func NewConsumerLayer ¶
func NewConsumerLayer() *ConsumerLayer
func (*ConsumerLayer) AnnounceNexus ¶
func (c *ConsumerLayer) AnnounceNexus(belowNexus nexus.Nexus)
announce the nexus and start 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)
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
Click to show internal directories.
Click to hide internal directories.