lnrpc/watchtowerrpc: add WatchtowerBackend configs
This commit is contained in:
3 files changed
+42
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package watchtowerrpc
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
)
|
||||
|
||||
// WatchtowerBackend abstracts access to the watchtower information that is
|
||||
// served via RPC connections.
|
||||
type WatchtowerBackend interface {
|
||||
// PubKey returns the public key for the watchtower used to
|
||||
// authentication and encrypt traffic with clients.
|
||||
PubKey() *btcec.PublicKey
|
||||
|
||||
// ListeningAddrs returns the listening addresses where the watchtower
|
||||
// server can accept client connections.
|
||||
ListeningAddrs() []net.Addr
|
||||
|
||||
// ExternalIPs returns the addresses where the watchtower can be reached
|
||||
// by clients externally.
|
||||
ExternalIPs() []net.Addr
|
||||
}
|
||||
Reference in new issue
Block a user