Documentation ¶
Index ¶
- type Layer
- func (c *Layer) AnnounceNexus(belowNexus nexus.Nexus)
- func (c *Layer) ConsumerFinishedCb(consumerNexus consumer.Nexus)
- func (c *Layer) OnPing(consumerNexus nexus.Nexus, milliseconds int)
- func (c *Layer) RegisterAboveLayer(belowLayer layer.Base)
- func (c *Layer) RevokeNexus(belowNexus nexus.Nexus)
- func (c *Layer) SetOnPing(fn consumer.OnPingFn)
- func (c *Layer) SetupConsumerNexus(belowNexus nexus.Nexus)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶ added in v0.54.0
Layer is the ConsumerLayer.
func NewConsumerLayer ¶
func NewConsumerLayer() *Layer
NewConsumerLayer creates a new consumer layer.
func (*Layer) AnnounceNexus ¶ added in v0.54.0
AnnounceNexus creates a new consumer.ConsumerNexus and starts the handshake.
func (*Layer) ConsumerFinishedCb ¶ added in v0.54.0
ConsumerFinishedCb is a call back for when a consumer is finished.
func (*Layer) RegisterAboveLayer ¶ added in v0.54.0
RegisterAboveLayer registers the current nexuses announce/revoke nexuses to the below layer.
func (*Layer) RevokeNexus ¶ added in v0.54.0
RevokeNexus is a revoked nexus.
func (*Layer) SetupConsumerNexus ¶ added in v0.54.0
SetupConsumerNexus initializes consumer nexus and tie the onping event back to this layer.
Click to show internal directories.
Click to hide internal directories.