Documentation ¶
Index ¶
Constants ¶
View Source
const ( CServiceName = "HLS" CTitlePattern = "go-peer/hidden-lake-service" )
View Source
const ( CServiceMask = uint32(0x1750571) CNetworkMask = uint64(0x676F2D7065657201) )
View Source
const ( CPathCFG = "hls.cfg" CPathDB = "hls.db" )
View Source
const ( CHeaderPublicKey = "Service-Public-Key" CHeaderMessageHash = "Service-Message-Hash" CHeaderOffResponse = "Service-Off-Response" )
View Source
const ( CRetryEnqueue = 2 CFetchTimeout = time.Minute )
View Source
const ( CDefaultMessageSize = (8 << 10) // 8KiB CDefaultWorkSize = 20 // bits CDefaultKeySize = 4096 // bits CDefaultQueuePeriod = 5000 // 5seconds CDefaultLimitVoidSize = (4 << 10) // 4KiB )
View Source
const ( CDefaultTCPAddress = "127.0.0.1:9571" CDefaultHTTPAddress = "127.0.0.1:9572" CDefaultServiceHLMAddress = "127.0.0.1:9592" )
View Source
const ( CQueueCapacity = (1 << 6) // messages in queue CQueuePoolCapacity = (1 << 5) // generated fake messages )
View Source
const ( CNetworkCapacity = (1 << 10) // 1024 hashes CNetworkMaxConns = (1 << 6) // 64 conns )
View Source
const ( CConnWaitReadDeadline = time.Hour CConnKeeperDuration = 10 * time.Second )
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" CHandleNetworkMessagePath = "/api/network/message" CHandleNetworkKeyPath = "/api/network/key" CHandleNodeKeyPath = "/api/node/key" )
View Source
const ( CHandleIndexTemplate = "%s" + CHandleIndexPath CHandleConfigSettingsTemplate = "%s" + CHandleConfigSettingsPath CHandleConfigConnectsTemplate = "%s" + CHandleConfigConnectsPath CHandleConfigFriendsTemplate = "%s" + CHandleConfigFriendsPath CHandleNetworkOnlineTemplate = "%s" + CHandleNetworkOnlinePath CHandleNetworkRequestTemplate = "%s" + CHandleNetworkRequestPath CHandleNetworkMessageTemplate = "%s" + CHandleNetworkMessagePath CHandleNetworkKeyTemplate = "%s" + CHandleNetworkKeyPath CHandleNodeKeyTemplate = "%s" + CHandleNodeKeyPath )
View Source
const ( // INFO CLogInfoOffResponseFromService logbuilder.ILogType = "OFRSP" CLogInfoResponseFromService logbuilder.ILogType = "RSPSR" // WARN CLogWarnRequestToService logbuilder.ILogType = "RQTSR" CLogWarnUndefinedService logbuilder.ILogType = "UNDSR" // ERRO CLogErroLoadRequestType logbuilder.ILogType = "LDRQT" CLogErroProxyRequestType logbuilder.ILogType = "PXRQT" )
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.