mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
ab7aae0708
Find and replace all nolint instances refering to the `lll` linter and replace with `ll` which is the name of our custom version of the `lll` linter which can be used to ignore log lines during linting. The next commit will do the configuration of the custom linter and disable the default one.
27 lines
685 B
Go
27 lines
685 B
Go
package lncfg
|
|
|
|
import "github.com/lightningnetwork/lnd/watchtower"
|
|
|
|
// Watchtower holds the daemon specific configuration parameters for running a
|
|
// watchtower that shares resources with the daemon.
|
|
//
|
|
//nolint:ll
|
|
type Watchtower struct {
|
|
Active bool `long:"active" description:"If the watchtower should be active or not"`
|
|
|
|
TowerDir string `long:"towerdir" description:"Directory of the watchtower.db"`
|
|
|
|
watchtower.Conf
|
|
}
|
|
|
|
// DefaultWatchtowerCfg creates a Watchtower with some default values filled
|
|
// out.
|
|
func DefaultWatchtowerCfg(defaultTowerDir string) *Watchtower {
|
|
conf := watchtower.DefaultConf()
|
|
|
|
return &Watchtower{
|
|
TowerDir: defaultTowerDir,
|
|
Conf: *conf,
|
|
}
|
|
}
|