Documentation ¶
Index ¶
- func NewBroker(opts ...broker.Option) broker.Broker
- func WithAckOnSuccess() broker.SubscribeOption
- func WithAuth(username string, password string) broker.Option
- func WithConnectHeaders(h map[string]string) broker.Option
- func WithConnectTimeout(ct time.Duration) broker.Option
- func WithDurable() broker.SubscribeOption
- func WithHeaders(h map[string]string) broker.PublishOption
- func WithHeartBeat(sendTimeout, recvTimeout time.Duration) broker.Option
- func WithHeartBeatError(errorTimeout time.Duration) broker.Option
- func WithMsgSendTimeout(tm time.Duration) broker.Option
- func WithRcvReceiptTimeout(tm time.Duration) broker.Option
- func WithReceipt(_ time.Duration) broker.PublishOption
- func WithSubscribeContext(ctx context.Context) broker.SubscribeOption
- func WithSubscribeHeaders(headers map[string]string) broker.SubscribeOption
- func WithSuppressContentLength(_ time.Duration) broker.PublishOption
- func WithVirtualHost(h string) broker.Option
- type ConsumerMessageCarrier
- type ProducerMessageCarrier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAckOnSuccess ¶
func WithAckOnSuccess() broker.SubscribeOption
func WithDurable ¶
func WithDurable() broker.SubscribeOption
func WithHeaders ¶
func WithHeaders(h map[string]string) broker.PublishOption
func WithReceipt ¶
func WithReceipt(_ time.Duration) broker.PublishOption
func WithSubscribeContext ¶
func WithSubscribeContext(ctx context.Context) broker.SubscribeOption
func WithSubscribeHeaders ¶
func WithSubscribeHeaders(headers map[string]string) broker.SubscribeOption
func WithSuppressContentLength ¶
func WithSuppressContentLength(_ time.Duration) broker.PublishOption
func WithVirtualHost ¶
Types ¶
type ConsumerMessageCarrier ¶
type ConsumerMessageCarrier struct {
// contains filtered or unexported fields
}
func NewConsumerMessageCarrier ¶
func NewConsumerMessageCarrier(msg *stompV3.Message) ConsumerMessageCarrier
func (ConsumerMessageCarrier) Get ¶
func (c ConsumerMessageCarrier) Get(key string) string
func (ConsumerMessageCarrier) Keys ¶
func (c ConsumerMessageCarrier) Keys() []string
func (ConsumerMessageCarrier) Set ¶
func (c ConsumerMessageCarrier) Set(key, val string)
type ProducerMessageCarrier ¶
type ProducerMessageCarrier struct {
// contains filtered or unexported fields
}
func NewProducerMessageCarrier ¶
func NewProducerMessageCarrier(msg *[]func(*frameV3.Frame) error) ProducerMessageCarrier
func (ProducerMessageCarrier) Get ¶
func (c ProducerMessageCarrier) Get(key string) string
func (ProducerMessageCarrier) Keys ¶
func (c ProducerMessageCarrier) Keys() []string
func (ProducerMessageCarrier) Set ¶
func (c ProducerMessageCarrier) Set(key, val string)
Click to show internal directories.
Click to hide internal directories.