Documentation ¶
Index ¶
- Constants
- func NewNormalPublisher(producerOptions []mqp.Option, opts ...PubOption) (*normalPublisher, error)
- func NewNormalRocketMQ(producerOptions []mqp.Option, consumerOptions []mqc.Option, opts ...PubOption) (*normalRocket, error)
- func NewPubOptions() *pubOptions
- func NewSubscriber(opts ...mqc.Option) (*subscriber, error)
- func NewTransactionPublisher(producerOptions []mqp.Option, ...) (*transactionPublisher, error)
- func NewTransactionRocketMQ(producerOptions []mqp.Option, consumerOptions []mqc.Option, ...) (*transactionRocket, error)
- func PrintPubOptions(packageName string)
- type Metadata
- type Producer
- type PubOption
Constants ¶
View Source
const ( MetadataRocketmqTag = "rocketmq-tag" MetadataRocketmqKey = "rocketmq-key" MetadataRocketmqShardingKey = "rocketmq-shardingkey" )
Variables ¶
This section is empty.
Functions ¶
func NewNormalPublisher ¶
NewNormalPublisher 函数用于创建一个 normalPublisher 结构体实例
func NewNormalRocketMQ ¶
func NewNormalRocketMQ(producerOptions []mqp.Option, consumerOptions []mqc.Option, opts ...PubOption) (*normalRocket, error)
NewNormalRocketMQ 函数用于创建一个 rocketMQ 结构体实例
func NewSubscriber ¶
func NewTransactionPublisher ¶
func NewTransactionPublisher( producerOptions []mqp.Option, checkLocalTransaction func(ext *primitive.MessageExt) primitive.LocalTransactionState, opts ...PubOption, ) (*transactionPublisher, error)
func NewTransactionRocketMQ ¶
func NewTransactionRocketMQ( producerOptions []mqp.Option, consumerOptions []mqc.Option, checkLocalTransaction func(ext *primitive.MessageExt) primitive.LocalTransactionState, opts ...PubOption, ) (*transactionRocket, error)
func PrintPubOptions ¶
func PrintPubOptions(packageName string)
Types ¶
type PubOption ¶
type PubOption interface {
// contains filtered or unexported methods
}
PubOption option interface
func SkipPubOption ¶
func SkipPubOption() PubOption
func WithPubGetMetadata ¶
WithPubGetMetadata getMetadata option of pubConfig
func WithPubOptions ¶
func WithPubOptions(o *pubOptions) PubOption
Click to show internal directories.
Click to hide internal directories.