Documentation ¶
Index ¶
Constants ¶
View Source
const ( CServiceName = "HLS" CServiceFullName = "hidden-lake-service" )
View Source
const ( CServiceMask = uint32(0x1750571) CNetworkMask = uint64(0x676F2D7065657201) // bytes_prefix: go-peer )
View Source
const ( CPathYML = "hls.yml" CPathDB = "hls.db" )
View Source
const ( CHeaderPublicKey = "Hl-Service-Public-Key" CHeaderResponseMode = "Hl-Service-Response-Mode" )
View Source
const ( CHeaderResponseModeON = "on" // default CHeaderResponseModeOFF = "off" )
View Source
const ( CRetryEnqueue = 2 CFetchTimeRatio = 10 )
View Source
const ( CDefaultMessageSize = (8 << 10) // 8KiB CDefaultWorkSize = 22 // bits CDefaultKeySize = 4096 // bits CDefaultQueuePeriod = 5000 // 5 seconds CDefaultQueueRandPeriod = 0 // 0 seconds CDefaultLimitVoidSize = (4 << 10) // 4KiB CDefaultF2FDisabled = false // friend-to-friend CDefaultNetworkKey = "default" )
View Source
const ( CDefaultTCPAddress = "127.0.0.1:9571" CDefaultHTTPAddress = "127.0.0.1:9572" )
View Source
const ( CQueueMainCapacity = (1 << 8) // 256 messages ~= 2MiB CQueueVoidCapacity = (1 << 5) // 32 messages ~= 256KiB )
View Source
const ( CNetworkQueueCapacity = (2 << 10) // 2048 hashes ~= 64KiB CNetworkMaxConns = (1 << 8) // 256 conns )
View Source
const ( CConnKeeperDuration = 10 * time.Second CConnDialTimeout = 30 * time.Second CConnWaitReadTimeout = time.Hour )
View Source
const ( CHandleIndexPath = "/api/index" CHandleConfigSettingsPath = "/api/config/settings" CHandleConfigConnectsPath = "/api/config/connects" CHandleConfigFriendsPath = "/api/config/friends" CHandleNetworkOnlinePath = "/api/network/online" CHandleNetworkRequestPath = "/api/network/request" CHandleNetworkPubKeyPath = "/api/network/pubkey" )
View Source
const (
CRequestQueueCapacity = (1 << 10) // 1024 request_ids ~= 44KiB
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.