Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func (*Message) Send ¶
func (m *Message) Send(queue *Queue, opts ...SendOption) error
Send sends a message to the queue. An option can be specified to indicate whether the message is sent as a transaction.
type SendOption ¶
type SendOption struct {
// contains filtered or unexported fields
}
SendOption represents an option to send messages to a queue.
func SendWithTransaction ¶
func SendWithTransaction(level TransactionLevel) SendOption
SendWithTransaction returns a SendOption that configures sending messages to a queue with the specified level value.
The default is MTS.
Click to show internal directories.
Click to hide internal directories.