Documentation ¶
Index ¶
- Constants
- func NewBroadcast(ctx context.Context, s eventbus.Subscriber, g *protocol.Gossip, ...) ring.Writer
- func NewSendToMany(ctx context.Context, s eventbus.Subscriber, g *protocol.Gossip, ...) ring.Writer
- func NewSendToOne(ctx context.Context, s eventbus.Subscriber, g *protocol.Gossip, ...) ring.Writer
- type Base
- type Broadcast
- type SendToMany
- type SendToOne
Constants ¶
View Source
const (
// MaxWriterQueueSize max number of messages queued for broadcasting.
MaxWriterQueueSize = 1000
)
Variables ¶
This section is empty.
Functions ¶
func NewBroadcast ¶
func NewBroadcast(ctx context.Context, s eventbus.Subscriber, g *protocol.Gossip, rusk rusk.NetworkClient) ring.Writer
NewBroadcast ...
func NewSendToMany ¶
func NewSendToMany(ctx context.Context, s eventbus.Subscriber, g *protocol.Gossip, rusk rusk.NetworkClient) ring.Writer
NewSendToMany ...
func NewSendToOne ¶
func NewSendToOne(ctx context.Context, s eventbus.Subscriber, g *protocol.Gossip, rusk rusk.NetworkClient) ring.Writer
NewSendToOne ...
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
Base is base impl of a kadcast writer.
type Broadcast ¶
type Broadcast struct {
Base
}
Broadcast is a proxy between EventBus and Kadcast service. It subscribes for both topics.Kadcast and topics.KadcastPoint, compiles a valid wire frame and propagates the message to Kadcast service.
type SendToMany ¶
type SendToMany struct {
Base
}
SendToMany collects topics.KadcastSendToMany event to distribute a single message to multiple nodes via rusk.NetworkClient Send call.
func (*SendToMany) Subscribe ¶
func (w *SendToMany) Subscribe()
Subscribe subscribes to eventbus Kadcast messages.
Click to show internal directories.
Click to hide internal directories.