Documentation ¶
Index ¶
- func HandleCrash()
- type AggregatorManager
- type FilterManager
- type Manager
- func (m *Manager) Aggregator(ctx context.Context, ruleName string) (rabbit.Aggregator, error)
- func (m *Manager) Filter(ctx context.Context, ruleName string) (rabbit.Filter, error)
- func (m *Manager) Name() string
- func (m *Manager) RegisterReceivers(receivers ...rabbit.Receiver)
- func (m *Manager) RuleGroup(ctx context.Context, name string) (*rabbit.RuleGroup, error)
- func (m *Manager) Sender(ctx context.Context, ruleName string) (rabbit.Sender, error)
- func (m *Manager) Start(ctx context.Context) error
- func (m *Manager) Templater(ctx context.Context, ruleName string) (rabbit.Templater, error)
- type Options
- type SenderManager
- type TemplaterManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AggregatorManager ¶
type AggregatorManager struct {
// contains filtered or unexported fields
}
func (*AggregatorManager) Aggregator ¶
func (x *AggregatorManager) Aggregator(ctx context.Context, ruleName string) (rabbit.Aggregator, error)
type FilterManager ¶
type FilterManager struct {
// contains filtered or unexported fields
}
type Manager ¶
type Manager struct { MaxConcurrentWorkers int Started bool Queue rabbit.MessageQueue Log *logr.Logger // contains filtered or unexported fields }
Manager 是一个消息队列的 Manager
func (*Manager) Aggregator ¶
func (*Manager) RegisterReceivers ¶
RegisterReceivers 注册一个或多个 Receiver
type Options ¶
type Options struct { // MaxConcurrentWorkers 是最大并发 worker 数量,默认为1 MaxConcurrentWorkers int // Log 日志记录器 Log *logr.Logger // Backoff 消息再次加入时,用来决定消息重新入队的时间 Backoff *rabbit.Backoff // MaxRetries 表示数据最多尝试的入队次数,超过这个次数,数据将被丢弃 MaxRetries int }
Options 是 Manager 的配置项
type SenderManager ¶
type SenderManager struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.