constants

package
v0.0.0-...-28f24a1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActiveTorrentSetKey = "active:torrent"
	ActivePeerSetKey    = "active:peer"

	TorrentInfoKeyTemplate    = "torrent:%s:info"
	TorrentPeerSetKeyTemplate = "torrent:%s:peer"

	TorrentInfoHashKey      = "info_hash"
	TorrentSeederCountKey   = "seeder_count"
	TorrentLeecherCountKey  = "leecher_count"
	TorrentSnatcherCountKey = "snatcher_count"
	TorrentMetaInfoKey      = "meta_info"
	TorrentCreatedAtKey     = "created_at"
	TorrentLastActiveAt     = "active_at"

	TorrentHotCapacity = 100

	StatsKey             = "stats"
	StatsTorrentCountKey = "torrent"
	StatsPeerCountKey    = "peer"
	StatsTrafficCountKey = "traffic"
	StatsCacheKey        = "stats:cache"

	TrackerPeerCountPattern = "torrent:*:peer"

	TorrentExpiration = time.Hour * 24
	PeerExpiration    = time.Hour * 6
)

Variables

This section is empty.

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