You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
633 B
21 lines
633 B
package watchtower |
|
|
|
import ( |
|
"net" |
|
|
|
"github.com/lightningnetwork/lnd/watchtower/lookout" |
|
"github.com/lightningnetwork/lnd/watchtower/wtserver" |
|
) |
|
|
|
// DB abstracts the persistent functionality required to run the watchtower |
|
// daemon. It composes the database interfaces required by the lookout and |
|
// wtserver subsystems. |
|
type DB interface { |
|
lookout.DB |
|
wtserver.DB |
|
} |
|
|
|
// AddressNormalizer is a function signature that allows the tower to resolve |
|
// TCP addresses on clear or onion networks. |
|
type AddressNormalizer func(addrs []string, defaultPort string, |
|
resolver func(string, string) (*net.TCPAddr, error)) ([]net.Addr, error)
|
|
|