Documentation ¶
Index ¶
Constants ¶
View Source
const ( EncodingGob encoding = iota EncodingJson )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receiver ¶
type Receiver[T any] struct { // Addr is the address of the broker. Addr string // Dest is the default destination. Dest string // PubSub configures the type of destination. // 'true' for the publish-subscribe pattern (topics), // 'false' for the producer-consumer pattern (queues). PubSub bool // Enc specifies the encoding. // The default encoding is gob. Enc encoding }
A Receiver receives messages of type T from the artemis broker.
func (*Receiver[T]) ReceiveFrom ¶
ReceiveFrom receives messages from a specified destination.
type Sender ¶
type Sender struct { // Addr is the address of the broker. Addr string // Dest is the default destination. Dest string // PubSub configures the type of destination. // 'true' for the publish-subscribe pattern (topics), // 'false' for the producer-consumer pattern (queues). PubSub bool // Enc specifies the encoding. // The default encoding is gob. Enc encoding }
A Sender sends messages to the artemis broker.
Click to show internal directories.
Click to hide internal directories.