package
0.1.1
Repository: https://github.com/scalarorg/go-electrum.git
Documentation: pkg.go.dev

# Functions

Call calls the passed function repeatedly with different servers until one of them returns the result without an error of type FailOverError.
CallAlwaysFailoveris like Call, but every error is treated as a FailoverError, trigger a failover.
New creates a new failover client.
NewFailoverError wraps an error in a FailoverError.
Subscribe calls the passed `subscriptionCall` function repeatedly with different servers until one of them returns a result without an error of type FailOverError.
SubscribeAlwaysFailover is like Subscribe, but every error is treated as a FailOverError.

# Variables

ErrClosed is returned by `Call` and `Subscribe` if the failover client is closed.
ErrNoServers is used when no servers are configured, so no connection can be established.

# Structs

Failover is a generic client that is backed by multiple servers.
FailoverError triggers a failover to another server.
Options for the failover client.
Server are the server details.

# Interfaces

Client describes which methods a generic client must implement.