Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Destroy ¶
func Destroy(messageQueue *MessageQueue)
Types ¶
type MessageQueue ¶
type MessageQueue struct {
// contains filtered or unexported fields
}
func (*MessageQueue) Publish ¶
func (messageQueue *MessageQueue) Publish(topic string, event *data_protocol.CloudEvent) error
func (*MessageQueue) Subscribe ¶
func (messageQueue *MessageQueue) Subscribe(group string, topic string, handler common.MessageHandler) error
func (*MessageQueue) UnSubscribe ¶
func (messageQueue *MessageQueue) UnSubscribe(group string, topic string) error
type Option ¶ added in v1.1.10
type Option func(options *Options)
func WithConsumerNum ¶ added in v1.1.10
func WithMaxLen ¶ added in v1.1.10
Click to show internal directories.
Click to hide internal directories.