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 ( CAKeySize = 4096 // bits CWorkSize = 20 // bits CMessageSize = (1 << 20) // 1MiB )
View Source
const ( CQueueCapacity = (1 << 6) // messages in queue CQueuePoolCapacity = (1 << 5) // generated fake messages CQueueDuration = 5 * time.Second )
View Source
const ( CNetworkWriteTimeout = time.Minute CNetworkCapacity = (1 << 10) // hashes CNetworkMaxConns = (1 << 6) // 64 )
View Source
const ( CConnLimitVoidSize = (1 << 20) // 1MiB CConnWaitReadDeadline = time.Hour CConnReadDeadline = time.Minute CConnWriteDeadline = time.Minute )
View Source
const ( CHandleIndexPath = "/api/index" CHandleConfigConnectsPath = "/api/config/connects" CHandleConfigFriendsPath = "/api/config/friends" CHandleNetworkOnlinePath = "/api/network/online" CHandleNetworkRequestPath = "/api/network/request" CHandleNetworkMessagePath = "/api/network/message" CHandleNodeKeyPath = "/api/node/key" )
View Source
const ( CHandleIndexTemplate = "%s" + CHandleIndexPath CHandleConfigConnectsTemplate = "%s" + CHandleConfigConnectsPath CHandleConfigFriendsTemplate = "%s" + CHandleConfigFriendsPath CHandleNetworkOnlineTemplate = "%s" + CHandleNetworkOnlinePath CHandleNetworkRequestTemplate = "%s" + CHandleNetworkRequestPath CHandleNetworkMessageTemplate = "%s" + CHandleNetworkMessagePath CHandleNodeKeyTemplate = "%s" + CHandleNodeKeyPath )
View Source
const ( // Base CLogWarnOffResponseFromService anon_logger.ILogType = "OFRSP" CLogWarnResponseFromService anon_logger.ILogType = "RSPSR" // WARN CLogWarnRequestToService anon_logger.ILogType = "RQTSR" CLogWarnUndefinedService anon_logger.ILogType = "UNDSR" // ERRO CLogErroLoadRequestType anon_logger.ILogType = "LDRQT" CLogErroProxyRequestType anon_logger.ILogType = "PXRQT" )
View Source
const (
CConnKeeperDuration = time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
func InitClient(pPrivKey asymmetric.IPrivKey) client.IClient
Types ¶
Click to show internal directories.
Click to hide internal directories.