Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( UpdateBroadcastTimeout time.Duration = 3 * time.Second UpdateBroadcastRetryPause time.Duration = 100 * time.Millisecond )
var ( // A wrap for the generate method for tests to override GetNewProjectID = id.Generate // Accounts ID generators — overridable in tests for deterministic IDs. GetNewAccountID = id.Generate GetNewMemberID = id.Generate GetNewUserID = id.Generate GetNewPlanID = id.Generate GetNewSessionID = id.Generate )
var ( // From Patrick FakeSecret = false DelayJob = false RetryJob = false DelayJobTime = 60 * time.Second MaxCancelAttempts = 30 MaxJobAttempts = 2 // From Monkey MockedPatrick = false TimeoutTest = false DefaultLockTime = 600 * time.Second DefaultMaxTime = 1 * time.Hour DefaultLockMinWaitTime = 30 * time.Second DefaultRefreshLockTime = 90 * time.Second DefaultTestTimeOut = 5 * time.Second )
var ( Auth = "auth" AuthProtocol = "/auth/v1" Hoarder = "hoarder" HoarderProtocol = "/hoarder/v1" Monkey = "monkey" MonkeyProtocol = "/monkey/v1" Substrate = "substrate" SubstrateProtocol = "/substrate/v1" Tns = "tns" TnsProtocol = "/tns/v1" Seer = "seer" SeerProtocol = "/seer/v1" // TODO: Merge with substrate SubstrateP2P = "substrate-p2p" SubstrateP2PProtocol = "/substrate/p2p/v1" Gateway = "gateway" Patrick = "patrick" PatrickProtocol = "/patrick/v1" OraclePubSubPath = "/seer/oracle/v1" )
var (
DefaultDnsPort = 53
)
TODO: These ports are tied to generic config/dream and will need looked at moving generic config
Functions ¶
func StartSeerBeacon ¶
StartSeerBeacon announces the given service types from this node through a single seer client and one usage/geo beacon goroutine set. A node running several services (a shape) beacons once for all of them, instead of opening a client and beacon per service. Callers build the client (see clients/p2p/seer.StartNodeBeacon) so this package need not depend on it.
Types ¶
This section is empty.