Documentation ¶
Overview ¶
Package broker implements the broker logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockingChannel ¶
type BlockingChannel struct {
// contains filtered or unexported fields
}
BlockingChannel implements the Queue interface using a channel.
func NewBlockingChannel ¶
func NewBlockingChannel(bufferLen int) *BlockingChannel
NewBlockingChannel returns a BlockingChannel.
func (*BlockingChannel) Pop ¶
func (bc *BlockingChannel) Pop(ctx context.Context) events.Interface
Pop an event from the queue.
func (*BlockingChannel) Push ¶
func (bc *BlockingChannel) Push(evt events.Interface)
Push pushes an event to the queue.
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker receives events from the collectors and sends them to the subscribers.
type Option ¶
type Option func(opt *options)
Option function used to set options when creating a new Broker instance.
func WithAddress ¶
WithAddress configures the binding address of the grpc server to the given value.
Click to show internal directories.
Click to hide internal directories.