Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { UUID string Topic string SvcName string Header Header Payload []byte Policy *Policy AckChan chan struct{} `msgpack:"-"` RejectChan chan struct{} `msgpack:"-"` // contains filtered or unexported fields }
func NewMessage ¶
func NewMessage(uuid, topic string, payload []byte, opts ...PolicyOption) *Message
type PolicyOption ¶
type PolicyOption func(c *Policy)
func WithConfirm ¶
func WithConfirm(use bool) PolicyOption
WithConfirm 开启Confirm,会使用本地消息表保存消息,联合mq的Confirm机制
Click to show internal directories.
Click to hide internal directories.