Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneralProducer ¶
type GeneralProducer[T any] struct { // contains filtered or unexported fields }
func NewGeneralProducer ¶
func NewGeneralProducer[T any](q mq.MQ, topic string) (*GeneralProducer[T], error)
type MultipleProducer ¶
type MultipleProducer[T any] struct { // contains filtered or unexported fields }
MultipleProducer 管理多个 GeneralProducer
func NewMultipleProducer ¶
func NewMultipleProducer[T any](mq mq.MQ) (*MultipleProducer[T], error)
NewMultipleProducer 创建一个新的 ProducerManager
func (*MultipleProducer[T]) AddProducer ¶
func (pm *MultipleProducer[T]) AddProducer(topic string) error
AddProducer 添加一个新的 producer 监听指定的 topic
func (*MultipleProducer[T]) DelProducer ¶
func (pm *MultipleProducer[T]) DelProducer(topic string) error
DelProducer 删除 producer 监听指定的 topic
Click to show internal directories.
Click to hide internal directories.