connection

package
v0.0.0-...-413f074 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MongoNotFoundErr = "not found"

MongoNotFoundErr is message for not found error from mongo

Variables

View Source
var (
	// Telegram represents Telegram connection
	Telegram *tgbotapi.BotAPI

	// MasterTelegramID stores master ID from env
	MasterTelegramID int64
	// SquadTelegramID stores squad ID from env
	SquadTelegramID int64
	// BirthdayTelegramID stores birthday ID from env
	BirthdayTelegramID int64
)
View Source
var MongoDB *mgo.Database

MongoDB represents MongoDB connection

View Source
var Redis *redis.Client

Redis represents Redis connection

Functions

func Init

func Init()

Init initiates application connections

func InitMongoDB

func InitMongoDB()

InitMongoDB initializes MongoDB connection

func InitRedis

func InitRedis()

InitRedis initializes Redis connection

func InitTelegram

func InitTelegram()

InitTelegram initializes Telegram connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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