common

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UpdateBroadcastTimeout    time.Duration = 3 * time.Second
	UpdateBroadcastRetryPause time.Duration = 100 * time.Millisecond
)
View Source
var (
	// From Patrick
	FakeSecret        = false
	DelayJob          = false
	RetryJob          = false
	DelayJobTime      = 60 * time.Second
	MaxCancelAttempts = 30
	MaxJobAttempts    = 2

	// From Monkey
	RetryErrorString       = "Retry this job"
	MockedPatrick          = false
	TimeoutTest            = false
	DefaultLockTime        = 600 * time.Second
	DefaultLockMinWaitTime = 10 * time.Second
	DefaultRefreshLockTime = 60 * time.Second
	DefaultTestTimeOut     = 5 * time.Second
)
View Source
var (
	Auth         = "auth"
	AuthProtocol = "/auth/v1"

	Hoarder         = "hoarder"
	HoarderProtocol = "/hoarder/v1"

	Monkey         = "monkey"
	MonkeyProtocol = "/monkey/v1"

	Substrate         = "substrate"
	SubstrateProtocol = "/substrate/v1"

	// TODO: Merge with substrate
	SubstrateP2P         = "substrate-p2p"
	SubstrateP2PProtocol = "/substrate/p2p/v1"

	Gateway = "gateway"

	Patrick         = "patrick"
	PatrickProtocol = "/patrick/v1"

	Seer             = "seer"
	OraclePubSubPath = "/seer/oracle/v1"

	Tns = "tns"
)
View Source
var (
	DefaultDnsPort = 53
)

TODO: These ports are tied to generic config/dreamland and will need looked at moving generic config

View Source
var (
	// A wrap for the generate method for tests to override
	GetNewProjectID = id.Generate
)

Functions

func SeerBeaconOptionMeta

func SeerBeaconOptionMeta(meta map[string]string) seerBeaconOption

func StartSeerBeacon

func StartSeerBeacon(config *config.Node, sc seer.Client, serviceType seer.ServiceType, ops ...seerBeaconOption) error

func SwarmKey

func SwarmKey() pnet.PSK

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL