Documentation
¶
Index ¶
- func NewElasticSearch(_ *envvar.Configuration) (es *esv7.Client, err error)
- func NewMemcached(conf *envvar.Configuration) (*memcache.Client, error)
- func NewPostgreSQL(conf *envvar.Configuration) (*pgxpool.Pool, error)
- func NewRedis(conf *envvar.Configuration) (*redis.Client, error)
- func NewVaultProvider() (*vault.Provider, error)
- type KafkaConsumer
- type KafkaProducer
- type RabbitMQ
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewElasticSearch ¶
func NewElasticSearch(_ *envvar.Configuration) (es *esv7.Client, err error)
NewElasticSearch instantiates the ElasticSearch client using configuration defined in environment variables.
func NewMemcached ¶
func NewMemcached(conf *envvar.Configuration) (*memcache.Client, error)
func NewPostgreSQL ¶
func NewPostgreSQL(conf *envvar.Configuration) (*pgxpool.Pool, error)
NewPostgreSQL instantiates the PostgreSQL database using configuration defined in environment variables.
func NewRedis ¶
func NewRedis(conf *envvar.Configuration) (*redis.Client, error)
NewRedis instantiates the Redis client using configuration defined in environment variables.
func NewVaultProvider ¶
NewVaultProvider instantiates the Vault client using configuration defined in environment variables.
Types ¶
type KafkaConsumer ¶
KafkaConsumer is the consumer implementation of Kafka.
func NewKafkaConsumer ¶
func NewKafkaConsumer(conf *envvar.Configuration, groupID string) (*KafkaConsumer, error)
NewKafkaConsumer instantiates the Kafka consumer using configuration defined in environment variables.
type KafkaProducer ¶
KafkaConsumer is the producer implementation of Kafka.
func NewKafkaProducer ¶
func NewKafkaProducer(conf *envvar.Configuration) (*KafkaProducer, error)
NewKafkaProducer instantiates the Kafka producer using configuration defined in environment variables.
type RabbitMQ ¶
type RabbitMQ struct {
Connection *amqp.Connection
Channel *amqp.Channel
}
RabbitMQ ...
func NewRabbitMQ ¶
func NewRabbitMQ(conf *envvar.Configuration) (*RabbitMQ, error)
NewRabbitMQ instantiates the RabbitMQ instances using configuration defined in environment variables.