cfg

package
v0.0.0-...-617dd5f Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ENV = os.Getenv("ENV") // test/prod

	SentryDSN     = os.Getenv("SENTRY_DSN")
	RSSHubBaseUrl = os.Getenv("RSSHUB_BASE_URL")

	ServerURLPrefix = os.Getenv("SERVER_URL_PREFIX")
	APIPrefix       = os.Getenv("API_PREFIX") // /prpr-blabla

	CloudTasksQueuePathPrefix = os.Getenv("CLOUD_TASKS_QUEUE_PATH_PREFIX")
	NoPullingTimeRange        = os.Getenv("NO_PULLING_TIME_RANGE") // 03-10

	CloudStorageBucket = os.Getenv("CLOUD_STORAGE_BUCKET")

	TelegramToken = os.Getenv("TELEGRAM_TOKEN")

	ClarifaiKey = os.Getenv("CLARIFAI_KEY")
)
View Source
var (
	Debug = true
	DBDSN string

	CronPullInterval int // second

	CloudTasksPullingTaskQueueID        = "prpr-pulling"
	CloudTasksNewImageTaskQueueID       = "prpr-new-image"
	CloudTasksNewPrettyImageTaskQueueID = "prpr-new-pretty-image"

	TelegramAllowedUsers = make(map[int]bool)

	TimeZone  *time.Location
	UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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