components

package
v0.0.0-...-905ac89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAws

func InitAws() (err error)

InitAws initializes and caches the aws session reads the AWS region from the environment variable AWS_REGION, example: eu-west-1

func InitCron

func InitCron()

InitCron initializes and caches a cron handler

func InitDiscord

func InitDiscord() (err error)

InitDiscord initializes and caches the discord client reads the discord endpoint from the environment variable DISCORD_ENDPOINT, example: https://discordapp.com/ reads the discord bot token from the environment variable DISCORD_BOT_TOKEN this is only to open a gateway connection with a fixed bot token, for everything else cache.GetEDiscord should be used to get a customised session

func InitHealthchecksIO

func InitHealthchecksIO()

InitHealthchecksIO initializes and caches the healthchecks.io client reads the healthchecks.io api key from the environment variable Healthchecks.IO

func InitKafkaConsumer

func InitKafkaConsumer() error

InitKafkaConsumer initializes and caches a Kafka Consumer client reads the list of kafka brokers from the environment variable KAFKA_BROKER (delimited by ,)

func InitKafkaConsumerGroup

func InitKafkaConsumerGroup() error

InitKafkaConsumerGroup initializes and caches a Kafka Consumer Group client reads the list of zookeepers from the environment variable ZOOKEEPER_ADDRESSES (delimited by ,)

func InitKafkaProducer

func InitKafkaProducer() error

InitKafkaProducer initializes and caches a Kafka Producer client reads the list of kafka brokers from the environment variable KAFKA_BROKER (delimited by ,)

func InitLastFm

func InitLastFm()

InitLastFm initializes and caches the lastfm client reads the lastfm api key from the environment variable LASTFM_API_KEY reads the lastfm api secret from the environment variable LASTFM_API_SECRET

func InitLogger

func InitLogger(service string)

InitLogger initialises and caches the logging server will send warning and above messages to Discord if the DISCORD_LOGGING_WEBHOOK_URL environment variable is set

func InitMetrics

func InitMetrics()

InitMetrics initializes metrics and sets Uptime

func InitMinio

func InitMinio() (err error)

InitMinio sets up and caches the minio client reads the s3 endpoint from S3_ENDPOINT reads the s3 access key from AWS_ACCESS_KEY_ID reads the s3 access secret from AWS_SECRET_ACCESS_KEY reads the s3 bucket from S3_BUCKET reads the s3 location from S3_LOCATION reads the s3 cache folder from S3_CACHE_FOLDER if S3_NOTSECURE is set, it will connect to the s3 server insecure

func InitMongoDB

func InitMongoDB() (err error)

InitMongoDB initialises the MongoDB session reads the MongoDB URL from the environment variable MONGODB_URL reads the MongoDB Database from the environment variable MONGODB_DATABASE

func InitRedis

func InitRedis()

InitRedis initializes and caches the redis client reads the redis address from the environment variable REDIS_ADDRESS, example: 127.0.0.1:6379

func InitSentry

func InitSentry() (err error)

InitSentry sets up the raven client it reads the DSN from the environment variable RAVEN_DSN it sets the release to the environment variable VERSION if set

func InitTracer

func InitTracer(service string) error

InitTracer initialises the opentracing tracer and datadog integration

func InitTranslator

func InitTranslator(files []string)

InitTranslator initialises and caches a translation bundle

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL