package
0.0.0-20250225105205-8289a55d8107
Repository: https://github.com/mysteriumnetwork/node.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

DefaultConfig returns default params.
FilteredProposals create an function to keep getting proposals from the discovery based on the provided filters.
NewDNSOption creates and validates DNSOption.
NewManager creates connection manager with given dependencies.
NewMultiConnectionManager create a wrapper around connection manager to support multiple connections.
NewRegistry creates registry of plugable connections.
NewValidator returns a new instance of connection validator.

# Constants

DNSOptionAuto (default) tries the following with fallbacks: provider's DNS -> client's system DNS -> public DNS.
DNSOptionProvider uses DNS servers from provider's system configuration.
DNSOptionSystem uses DNS servers from client's system configuration.

# Variables

ErrAlreadyExists error indicates that action applied to manager expects no active connection (i.e.
ErrConnectionCancelled indicates that connection in progress was cancelled by request of api user.
ErrConnectionFailed indicates that Connect method didn't reach "Connected" phase due to connection error.
ErrInsufficientBalance indicates consumer has insufficient balance to connect to selected proposal.
ErrNoConnection error indicates that action applied to manager expects active connection (i.e.
ErrUnlockRequired indicates that the consumer identity has not been unlocked yet.
ErrUnsupportedServiceType indicates that target proposal contains unsupported service type.

# Structs

Config contains common configuration options for connection manager.
ConnectOptions represents the params we need to ensure a successful connection.
ConnectParams holds plugin specific params.
IPCheckConfig contains common params for connection ip check.
KeepAliveConfig contains keep alive options.
Registry holds of all plugable connections.
Validator validates pre connection conditions.

# Interfaces

Connection represents a connection.
ConsumerConfig are the parameters used for the initiation of connection.
Manager interface provides methods to manage connection.
MultiManager interface provides methods to manage connection.
PaymentIssuer handles the payments for service.
PriceGetter fetches the current price.

# Type aliases

ConnectionStart start new connection with a given options.
Creator creates new connection by given options and uses state channel to report state changes.
DNSOption defines DNS server selection strategy for consumer.
Factory represents a connection constructor.
PaymentEngineFactory creates a new payment issuer from the given params.
ProposalLookup returns a service proposal based on predefined conditions.
TimeGetter function returns current time.