constants

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

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogPath   = "./logs/system/log.log"
	DBLogPath = "./logs/db/log.log"
	DBPath    = "./db/users.db"

	TorrentCount = 15
	RecentCount  = 15
)

Internal config

View Source
const (
	ApiURL           = "https://apibay.org/q.php"
	RecentTorrentURL = "https://apibay.org/precompiled/data_top100_${CODE}.json"
	TorrentURL       = "https://itorrents.org/torrent/${INFO_HASH}.torrent"
)
View Source
const (
	START           Command = "start"
	USERS                   = "users"
	RECENT                  = "recent"
	TOPVIDEOS               = "topvideos"
	TOPAUDIO                = "topaudio"
	TOPGAMES                = "topgames"
	TOPPORN                 = "topporn"
	TOPAPPLICATIONS         = "topapplications"
	OTHERS                  = "others"
)

commands

View Source
const (
	WELCOME_MSG          = "Welcome to TorrentGenie \xF0\x9F\x98\x81	 - Get torrent files | magnet links \n\n Start by typing a name"
	INVALID_REPLY        = "Invalid reply, please try again"
	SOMETHING_WENT_WRONG = "Something went wrong, please try again"
	NO_RESULTS           = "No torrents found"
	INVALID_COMMAND      = "Invalid Command"
	ADMIN_COMMAND        = "Admin use only"
	SERVER_DOWN          = "Torrent server is down, please try again later"
)

messages

View Source
const (
	MagnetLink string = "magnet:?xt=urn:btih:${INFO_HASH}&dn=${NAME}${TRACKERS}"
)
View Source
const (
	PingTimeout = 10 * 60
)

ping timeout

View Source
const (
	RecommendMsg string = `` /* 262-byte string literal not displayed */

)

Variables

View Source
var (
	IsRecommendationOn bool = true
)

Recommendation

Functions

This section is empty.

Types

type Command

type Command string

type MessageType

type MessageType string
const (
	Magnet  MessageType = "magnet"
	Torrent             = "torrent"
)

Jump to

Keyboard shortcuts

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