global

package
v0.0.0-...-d9e7967 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug, _ = strconv.ParseBool(getEnv("DEBUG", "false"))
	AppHost  = getEnv("APP_HOST", "0.0.0.0")
	AppMode  = os.Getenv("APP_MOD")

	WebhookToken  = os.Getenv("TELEGRAM_WEBHOOK_TOKEN")
	TelegramToken = os.Getenv("TELEGRAM_TOKEN")
	BotName       = getEnv("BOT_NAME", "spotify_share_bot")

	AppSpotifyScope = []string{

		"user-read-recently-played",

		"user-read-currently-playing",

		"user-read-playback-state",

		"app-remote-control",
		"streaming",
	}
	ClientId     = os.Getenv("CLIENT_ID")
	ClientSecret = os.Getenv("CLIENT_SECRET")
	RedirectUri  = getEnv("REDIRECT_URI", "http://localhost:1323/spotify")

	DBRs                     = getEnv("DB_RS", "")
	DBName                   = getEnv("DB_NAME", "")
	DBAuthSource             = getEnv("DB_AUTH_SOURCE", "")
	DBHost                   = getEnv("DB_HOST", "")
	DBUser                   = getEnv("DB_USER", "")
	DBPass                   = getEnv("DB_PASS", "")
	DBCACERT                 = getEnv("DB_CACERT", "")
	DBAuthenticationDatabase = getEnv("DBAuthenticationDatabase", "admin")
	JWTToken                 = getEnv("JWT_TOKEN", "TEST_TOKEN")
	JWTTokenByte             = []byte(JWTToken)
)

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