Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher( config PublisherConfig, logger watermill.LoggerAdapter, ) (*Publisher, error)
func (*Publisher) Publish ¶
func (p *Publisher) Publish(key string, msg aliRocketSDK.PublishMessageRequest) (err error)
type PublisherConfig ¶
type PublisherConfig struct { Endpoint string AccessKey string SecretKey string Token string InstanceID string Topic string }
PublisherConfig the rocketmq publisher config
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber( config SubscriberConfig, logger watermill.LoggerAdapter, ) *Subscriber
func (*Subscriber) Close ¶
func (s *Subscriber) Close() error
Click to show internal directories.
Click to hide internal directories.