Documentation ¶
Index ¶
- func NewAdapter(ctx context.Context, processed adapter.EnvConfigAccessor, ...) adapter.MessageAdapter
- func NewEnvConfig() adapter.EnvConfigAccessor
- type Adapter
- func (a *Adapter) ConsumeMessages(channel *wabbit.Channel, queue *wabbit.Queue, logger *zap.Logger) (<-chan wabbit.Delivery, error)
- func (a *Adapter) CreateChannel(conn wabbit.Conn, connTest *amqptest.Conn, logger *zap.Logger) (wabbit.Channel, error)
- func (a *Adapter) CreateConn(user string, password string, logger *zap.Logger) (wabbit.Conn, error)
- func (a *Adapter) PollForMessages(channel *wabbit.Channel, queue *wabbit.Queue, stopCh <-chan struct{}) error
- func (a *Adapter) Start(ctx context.Context) error
- func (a *Adapter) StartAmqpClient(ch *wabbit.Channel) (*wabbit.Queue, error)
- type ChannelConfig
- type ExchangeConfig
- type QueueConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(ctx context.Context, processed adapter.EnvConfigAccessor, httpMessageSender *kncloudevents.HTTPMessageSender, reporter source.StatsReporter) adapter.MessageAdapter
func NewEnvConfig ¶
func NewEnvConfig() adapter.EnvConfigAccessor
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
func (*Adapter) ConsumeMessages ¶
func (*Adapter) CreateChannel ¶
func (*Adapter) CreateConn ¶
func (*Adapter) PollForMessages ¶
type ChannelConfig ¶
type ExchangeConfig ¶
type ExchangeConfig struct { Name string `envconfig:"RABBITMQ_EXCHANGE_CONFIG_NAME" required:"false"` Type string `envconfig:"RABBITMQ_EXCHANGE_CONFIG_TYPE" required:"true"` Durable bool `envconfig:"RABBITMQ_EXCHANGE_CONFIG_DURABLE" required:"false"` AutoDelete bool `envconfig:"RABBITMQ_EXCHANGE_CONFIG_AUTO_DELETE" required:"false"` }
type QueueConfig ¶
type QueueConfig struct { Name string `envconfig:"RABBITMQ_QUEUE_CONFIG_NAME" required:"true"` RoutingKey string `envconfig:"RABBITMQ_ROUTING_KEY" required:"true"` Durable bool `envconfig:"RABBITMQ_QUEUE_CONFIG_DURABLE" required:"false"` AutoDelete bool `envconfig:"RABBITMQ_QUEUE_CONFIG_AUTO_DELETE" required:"false"` }
Click to show internal directories.
Click to hide internal directories.