Documentation
¶
Index ¶
- type BaseStream
- type Input
- type Output
- type OutputDestination
- type RabbitMq
- func (mq *RabbitMq) GetConnection() (connection *amqp.Connection, channel *amqp.Channel, err error)
- func (mq *RabbitMq) GetConnectionString() string
- func (mq *RabbitMq) GetInput(name string) (input *Input, err error)
- func (mq *RabbitMq) GetOutput(name string) (output *Output, err error)
- func (mq *RabbitMq) GetOutputForDestination(destination string) (output *Output, err error)
- func (mq *RabbitMq) Init() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseStream ¶
BaseStream - basic class for rabbit-mq
func (*BaseStream) Close ¶
func (stream *BaseStream) Close()
Close - close channel and connection to RabbitMq
type Output ¶
type Output struct {
BaseStream
}
Output - output stream
type OutputDestination ¶ added in v1.0.8
type OutputDestination struct { Exchange string `yaml:"exchange"` // Exchange QueueName string `yaml:"queueName"` // Name of queue }
* OutputDestination - output destination
type RabbitMq ¶
type RabbitMq struct { Host string `yaml:"host"` // Host Port int32 `yaml:"port"` // Port User string `yaml:"user"` // User Password string `yaml:"password"` // Password Exchange string `yaml:"exchange"` // Exchange QueueName *string `yaml:"queueName"` // Name of queue PrefetchSize *int `yaml:"prefetchSize"` // Prefetch size PrefetchCount *int `yaml:"prefetchCount"` // Prefetch count Destinations *map[string]OutputDestination `yaml:"destinations"` // Defined destination // contains filtered or unexported fields }
RabbitMq - rabbit-mq configuration and provider stream
func (*RabbitMq) GetConnection ¶
GetConnection - get connection to RabbitMq
func (*RabbitMq) GetConnectionString ¶
GetConnectionString - get connection string for RabbitMq
func (*RabbitMq) GetOutputForDestination ¶ added in v1.0.8
GetOutputForDestination - get output stream for destination
Click to show internal directories.
Click to hide internal directories.