Documentation ¶
Overview ¶
Package memorybysubnet implements the storage interface for a Chihaya BitTorrent tracker keeping peer data in memory organized by a pre-configured subnet mask.
Index ¶
Constants ¶
View Source
const Name = "memorybysubnet"
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"` PreferredIPv4SubnetMaskBitsSet int `yaml:"preferred_ipv4_subnet_mask_bits_set"` PreferredIPv6SubnetMaskBitsSet int `yaml:"preferred_ipv6_subnet_mask_bits_set"` }
Config holds the configuration of a memory PeerStore.
Click to show internal directories.
Click to hide internal directories.