Documentation
¶
Overview ¶
Package stompt provides test helpers for STOMP messaging operations (typically used with ActiveMQ). It creates isolated queues for each test.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides a test helper for STOMP messaging operations. It manages isolated queues (prefixed with test ID) for each test.
func New ¶
New creates a new STOMP test client. Connection parameters can be overridden using environment variables: ACTIVEMQ_STOMP_ADDRESS, ACTIVEMQ_USERNAME, ACTIVEMQ_PASSWORD.
func (*Client) ConsumerConfig ¶
func (c *Client) ConsumerConfig(queue string) stompx.ConsumerConfig
ConsumerConfig returns a ConsumerConfig for the specified queue, with the queue name prefixed by the test ID for isolation.
func (*Client) PublisherConfig ¶
func (c *Client) PublisherConfig(queue string) stompx.PublisherConfig
PublisherConfig returns a PublisherConfig for the specified queue, with the queue name prefixed by the test ID for isolation.