mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
e800aacff4
Rename and unexport the `TowerClient` struct to `client` and rename the `TowerClientManager` interface to `ClientManager`.
30 lines
984 B
Go
30 lines
984 B
Go
package wtclientrpc
|
|
|
|
import (
|
|
"github.com/btcsuite/btclog"
|
|
"github.com/lightningnetwork/lnd/lncfg"
|
|
"github.com/lightningnetwork/lnd/watchtower/wtclient"
|
|
)
|
|
|
|
// Config is the primary configuration struct for the watchtower RPC server. It
|
|
// contains all the items required for the RPC server to carry out its duties.
|
|
// The fields with struct tags are meant to be parsed as normal configuration
|
|
// options, while if able to be populated, the latter fields MUST also be
|
|
// specified.
|
|
type Config struct {
|
|
// Active indicates if the watchtower client is enabled.
|
|
Active bool
|
|
|
|
// ClientMgr is a tower client manager that manages a set of tower
|
|
// clients.
|
|
ClientMgr wtclient.ClientManager
|
|
|
|
// Resolver is a custom resolver that will be used to resolve watchtower
|
|
// addresses to ensure we don't leak any information when running over
|
|
// non-clear networks, e.g. Tor, etc.
|
|
Resolver lncfg.TCPResolver
|
|
|
|
// Log is the logger instance we should log output to.
|
|
Log btclog.Logger
|
|
}
|