appContext

package
v0.0.0-...-9e7b976 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB               *gorm.DB
	DownloadRequests chan *file.FileBasic
	CfAPI            *clarifaiAPI.ClarifaiAPI
	BotAPI           *TGBotAPI.BotAPI
	Cache            *memcache.Cache
	ErrLogger        *log.Logger
	AccessLogger     *log.Logger
	ImagesPath       string
	ImagesPrefix     string
	Hostname         string
)

Functions

func SetAppContext

func SetAppContext(context *AppContext)

Types

type AppContext

type AppContext struct {
	DB               *gorm.DB
	DownloadRequests chan *file.FileBasic
	CfAPI            *clarifaiAPI.ClarifaiAPI
	BotAPI           *TGBotAPI.BotAPI
	Cache            *memcache.Cache
	ErrLogger        *log.Logger
	AccessLogger     *log.Logger
	ImagesPrefix     string
	ImagesPath       string
	Hostname         string
}

Jump to

Keyboard shortcuts

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