msmq

package module
v0.0.0-...-1e7d4cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 3 Imported by: 1

README

go-msmq

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 NewMessage() (Message, error)

func (*Message) Body

func (m *Message) Body() (string, error)

func (*Message) LookupID

func (m *Message) LookupID() (string, error)

LookupID returns the lookup identifier of the message.

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.

func (*Message) SetBody

func (m *Message) SetBody(s string) error

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.

Directories

Path Synopsis
_example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL