Documentation
¶
Overview ¶
Package memory implements the storage interface for a Chihaya BitTorrent tracker keeping peer data in memory.
Index ¶
Constants ¶
View Source
const Name = "memory"
Name is the name by which this peer store is registered with Chihaya.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { GarbageCollectionInterval time.Duration `yaml:"gc_interval"` PrometheusReportingInterval time.Duration `yaml:"prometheus_reporting_interval"` PeerLifetime time.Duration `yaml:"peer_lifetime"` ShardCount int `yaml:"shard_count"` }
Config holds the configuration of a memory PeerStore.
Click to show internal directories.
Click to hide internal directories.