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.Layer)
- 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
func NewConsumerLayer ¶
func NewConsumerLayer() *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
consume 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
func (*Layer) SetupConsumerNexus ¶ added in v0.54.0
initialize consumer nexus and tie the onping event back to this layer
Click to show internal directories.
Click to hide internal directories.