Documentation ¶
Index ¶
- func GetWatermillUUID(msg *amqp.Message) any
- func IsConnErr(err error) bool
- func Marshal(msg *message.Message) (*amqp.Message, error)
- func Unmarshal(amqpMsg *amqp.Message) (*message.Message, error)
- type Config
- type ConnectionWrapper
- type PublishConfig
- type Publisher
- type SubscribeConfig
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWatermillUUID ¶
func GetWatermillUUID(msg *amqp.Message) any
Types ¶
type Config ¶
type Config struct { Host string Port int Username string Password string TLSConfig *tls.Config Publish PublishConfig Subscribe SubscribeConfig }
type ConnectionWrapper ¶
type ConnectionWrapper struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(ctx context.Context, config Config) (*ConnectionWrapper, error)
func (*ConnectionWrapper) Close ¶
func (c *ConnectionWrapper) Close() error
type PublishConfig ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func (*Publisher) CloseSenders ¶
func (p *Publisher) CloseSenders()
type SubscribeConfig ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(ctx context.Context, config Config) (*Subscriber, error)
func NewSubscriberWithConnection ¶
func NewSubscriberWithConnection(ctx context.Context, config Config, conn *ConnectionWrapper) (*Subscriber, error)
func (*Subscriber) Close ¶
func (s *Subscriber) Close() error
func (*Subscriber) SubscribeInitialize ¶
func (s *Subscriber) SubscribeInitialize(topic string) error
Click to show internal directories.
Click to hide internal directories.