Documentation
¶
Index ¶
- type RabbitMQDestination
- func (d *RabbitMQDestination) ComputeTarget(destination *models.Destination) destregistry.DestinationTarget
- func (d *RabbitMQDestination) CreatePublisher(ctx context.Context, destination *models.Destination) (destregistry.Publisher, error)
- func (d *RabbitMQDestination) Preprocess(newDestination *models.Destination, originalDestination *models.Destination, ...) error
- func (d *RabbitMQDestination) Validate(ctx context.Context, destination *models.Destination) error
- type RabbitMQDestinationConfig
- type RabbitMQDestinationCredentials
- type RabbitMQPublisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RabbitMQDestination ¶
type RabbitMQDestination struct {
*destregistry.BaseProvider
}
func New ¶
func New(loader metadata.MetadataLoader, basePublisherOpts []destregistry.BasePublisherOption) (*RabbitMQDestination, error)
func (*RabbitMQDestination) ComputeTarget ¶
func (d *RabbitMQDestination) ComputeTarget(destination *models.Destination) destregistry.DestinationTarget
func (*RabbitMQDestination) CreatePublisher ¶
func (d *RabbitMQDestination) CreatePublisher(ctx context.Context, destination *models.Destination) (destregistry.Publisher, error)
func (*RabbitMQDestination) Preprocess ¶
func (d *RabbitMQDestination) Preprocess(newDestination *models.Destination, originalDestination *models.Destination, opts *destregistry.PreprocessDestinationOpts) error
Preprocess sets the default TLS value to "true" if not provided
func (*RabbitMQDestination) Validate ¶
func (d *RabbitMQDestination) Validate(ctx context.Context, destination *models.Destination) error
type RabbitMQPublisher ¶
type RabbitMQPublisher struct {
*destregistry.BasePublisher
// contains filtered or unexported fields
}
func (*RabbitMQPublisher) Close ¶
func (p *RabbitMQPublisher) Close() error
func (*RabbitMQPublisher) ForceConnectionClose ¶
func (p *RabbitMQPublisher) ForceConnectionClose()
func (*RabbitMQPublisher) GetConnection ¶
func (p *RabbitMQPublisher) GetConnection() *amqp091.Connection
func (*RabbitMQPublisher) Publish ¶
func (p *RabbitMQPublisher) Publish(ctx context.Context, event *models.Event) (*destregistry.Delivery, error)
Click to show internal directories.
Click to hide internal directories.