github.com/decred/dcrlnd@v0.7.6/lnrpc/wtclientrpc/config.go (about) 1 package wtclientrpc 2 3 import ( 4 "github.com/decred/dcrlnd/lncfg" 5 "github.com/decred/dcrlnd/watchtower/wtclient" 6 "github.com/decred/slog" 7 ) 8 9 // Config is the primary configuration struct for the watchtower RPC server. It 10 // contains all the items required for the RPC server to carry out its duties. 11 // The fields with struct tags are meant to be parsed as normal configuration 12 // options, while if able to be populated, the latter fields MUST also be 13 // specified. 14 type Config struct { 15 // Active indicates if the watchtower client is enabled. 16 Active bool 17 18 // Client is the backing watchtower client that we'll interact with 19 // through the watchtower RPC subserver. 20 Client wtclient.Client 21 22 // AnchorClient is the backing watchtower client for anchor channels that 23 // we'll interact through the watchtower RPC subserver. 24 AnchorClient wtclient.Client 25 26 // Resolver is a custom resolver that will be used to resolve watchtower 27 // addresses to ensure we don't leak any information when running over 28 // non-clear networks, e.g. Tor, etc. 29 Resolver lncfg.TCPResolver 30 31 // Log is the logger instance we should log output to. 32 Log slog.Logger 33 }