Documentation
¶
Index ¶
Constants ¶
View Source
const ( RabbitQueueBroker = "RabbitMQ - Queue" RabbitExchangeBroker = "RabbitMQ - Exchange" NatsBroker = "NATs" RedisBroker = "Redis" GooglePubSubBroker = "Google Pub/Sub" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
URL string
Broker string
BodyFileName string
HeadersFileName string
Repeat int
RabbitCfg *RabbitConfig
NatsCfg *NatsConfig
RedisCfg *RedisConfig
GooglePubSubCfg *GooglePubSubConfig
}
Config contains all of the configuration required to send messages to a broker
func (Config) Destination ¶ added in v0.0.2
Destination will return where the message has been configured to be sent depending on the broker. Different brokers call this different things so the flags the users set are named after what a broker uses, and this will return that value
type GooglePubSubConfig ¶ added in v0.0.3
GooglePubSubConfig contains config specifically for Google Pub/Sub
type NatsConfig ¶
type NatsConfig struct {
Subject string
}
NatsConfig contains config specifically for NATs
type RabbitConfig ¶
type RabbitConfig struct {
DestinationName string
}
RabbitConfig contains config specifically for RabbitMQ
type RedisConfig ¶ added in v0.0.2
type RedisConfig struct {
Channel string
}
RedisConfig contains config specifically for Redis
Click to show internal directories.
Click to hide internal directories.