Documentation ¶
Index ¶
- func GetAwsSession() *session.Session
- func GetCron() *cron.Cron
- func GetDiscord() *discordgo.Session
- func GetEDiscord(botID string) *discordgo.Session
- func GetEDiscordGateway(botID string) *discordgo.Session
- func GetHealthchecksIO() *healthchecksio.Client
- func GetKafkaConsumer() sarama.Consumer
- func GetKafkaConsumerGroup() *consumergroup.ConsumerGroup
- func GetKafkaProducer() sarama.SyncProducer
- func GetLastFm() *lastfm.Api
- func GetLocalizationBundle() *i18n.Bundle
- func GetLogger() *logrus.Entry
- func GetMinio() *minio.Client
- func GetMongo() *mongo.Database
- func GetRedisClient() *redis.Client
- func GetTracer() opentracing.Tracer
- func HasLogger() bool
- func SetAwsSession(s *session.Session)
- func SetCron(s *cron.Cron)
- func SetDiscord(s *discordgo.Session)
- func SetHealthchecksIO(c *healthchecksio.Client)
- func SetKafkaConsumer(s sarama.Consumer)
- func SetKafkaConsumerGroup(s *consumergroup.ConsumerGroup)
- func SetKafkaProducer(s sarama.SyncProducer)
- func SetLastfFm(s *lastfm.Api)
- func SetLocalizationBundle(s *i18n.Bundle)
- func SetLogger(s *logrus.Entry)
- func SetMinio(s *minio.Client)
- func SetMongo(c *mongo.Database)
- func SetRedisClient(s *redis.Client)
- func SetTracer(s opentracing.Tracer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAwsSession ¶
GetAwsSession returns a cached aws session
func GetDiscord ¶
GetDiscord returns a cached discordgo session
func GetEDiscord ¶
GetEDiscord gets or create a discord session for an Event reads the discord bot token from DISCORD_BOT_TOKEN_<bot user id>
func GetEDiscordGateway ¶
GetEDiscordGateway gets or create a discord session for an Event, and opens a new gateway for it Should only be used for testing!!! (normally we receive events from the Gateway process) reads the discord bot token from DISCORD_BOT_TOKEN_<bot user id>
func GetHealthchecksIO ¶
func GetHealthchecksIO() *healthchecksio.Client
GetHealthchecksIO returns a cached healthchecks.io client
func GetKafkaConsumer ¶
GetKafkaConsumer returns a cached Kafka Consumer client
func GetKafkaConsumerGroup ¶
func GetKafkaConsumerGroup() *consumergroup.ConsumerGroup
GetKafkaConsumerGroup returns a cached Kafka Consumer Group client
func GetKafkaProducer ¶
func GetKafkaProducer() sarama.SyncProducer
GetKafkaProducer returns a cached Kafka Producer client
func GetLocalizationBundle ¶
GetLocalizationBundle returns a cached localization bundle
func GetRedisClient ¶
GetRedisClient returns a cached redis client
func SetAwsSession ¶
SetAwsSession caches an aws session for future use
func SetDiscord ¶
SetDiscord caches a discordgo session for future use
func SetHealthchecksIO ¶
func SetHealthchecksIO(c *healthchecksio.Client)
SetHealthchecksIO caches an healthchecks.io client for future use
func SetKafkaConsumer ¶
SetKafkaConsumer caches a Kafka Consumer client for future use
func SetKafkaConsumerGroup ¶
func SetKafkaConsumerGroup(s *consumergroup.ConsumerGroup)
SetKafkaConsumerGroup caches a Kafka Consumer Group clieent for future use
func SetKafkaProducer ¶
func SetKafkaProducer(s sarama.SyncProducer)
SetKafkaProducer caches a Kafka Producer client for future use
func SetLocalizationBundle ¶
SetLocalizationBundle caches a localization bundle for future use
func SetRedisClient ¶
SetRedisClient caches a redis client for future use
Types ¶
This section is empty.