Versions in this module Expand all Collapse all v0 v0.0.20 Sep 9, 2023 v0.0.10 Sep 9, 2023 v0.0.3 Sep 9, 2023 Changes in this version + const BoltBackend + const DefaultBatchCommitInterval + const DefaultConfigFilename + const DefaultEtcdElectionPrefix + const DefaultFinalCltvRejectDelta + const DefaultHoldInvoiceExpiryDelta + const DefaultIncomingBroadcastDelta + const DefaultMaxPendingChannels + const DefaultOutgoingBroadcastDelta + const DefaultOutgoingCltvRejectDelta + const DefaultRPCGraphCacheDuration + const DefaultReadWorkers + const DefaultRemoteSignerRPCTimeout + const DefaultSigWorkers + const DefaultWriteWorkers + const EtcdBackend + const MinChannelCacheSize + const MinRejectCacheSize + const NSChannelDB + const NSDecayedLogDB + const NSMacaroonDB + const NSTowerClientDB + const NSTowerServerDB + const NSWalletDB + const PostgresBackend + var MinHealthCheckBackoff = time.Second + var MinHealthCheckInterval = time.Minute + var MinHealthCheckTimeout = time.Second + func CleanAndExpandPath(path string) string + func ClientAddressDialer(defaultPort string) func(context.Context, string) (net.Conn, error) + func EnforceSafeAuthentication(addrs []net.Addr, macaroonsActive, tlsActive bool) error + func IsLoopback(addr string) bool + func IsPrivate(addr net.Addr) bool + func IsUnix(addr net.Addr) bool + func ListenOnAddress(addr net.Addr) (net.Listener, error) + func NormalizeAddresses(addrs []string, defaultPort string, tcpResolver TCPResolver) ([]net.Addr, error) + func NormalizeNetwork(network string) string + func ParseAddressString(strAddress string, defaultPort string, tcpResolver TCPResolver) (net.Addr, error) + func ParseLNAddressString(strAddress string, defaultPort string, tcpResolver TCPResolver) (*lnwire.NetAddress, error) + func TLSListenOnAddress(addr net.Addr, config *tls.Config) (net.Listener, error) + func Validate(validators ...Validator) error + type AutoPilot struct + Active bool + Allocation float64 + ConfTarget uint32 + Heuristic map[string]float64 + MaxChannelSize int64 + MaxChannels int + MinChannelSize int64 + MinConfs int32 + Private bool + type Bitcoind struct + Dir string + EstimateMode string + PrunedNodeMaxPeers int + RPCHost string + RPCPass string + RPCUser string + ZMQPubRawBlock string + ZMQPubRawTx string + type Btcd struct + Dir string + RPCCert string + RPCHost string + RPCPass string + RPCUser string + RawRPCCert string + type Caches struct + ChannelCacheSize int + RPCGraphCacheDuration time.Duration + RejectCacheSize int + func (c *Caches) Validate() error + type Chain struct + Active bool + BaseFee lnwire.MilliSatoshi + ChainDir string + DNSSeeds []string + DefaultNumChanConfs int + DefaultRemoteDelay int + FeeRate lnwire.MilliSatoshi + MainNet bool + MaxLocalDelay uint16 + MinHTLCIn lnwire.MilliSatoshi + MinHTLCOut lnwire.MilliSatoshi + Node string + RegTest bool + SigNet bool + SigNetChallenge string + SigNetSeedNode []string + SimNet bool + TestNet4 bool + TimeLockDelta uint32 + func (c *Chain) Validate(minTimeLockDelta uint32, minDelay uint16) error + type CheckConfig struct + Attempts int + Backoff time.Duration + Interval time.Duration + Timeout time.Duration + type Cluster struct + EnableLeaderElection bool + EtcdElectionPrefix string + ID string + LeaderElector string + func DefaultCluster() *Cluster + func (c *Cluster) MakeLeaderElector(electionCtx context.Context, db *DB) (cluster.LeaderElector, error) + func (c *Cluster) Validate() error + type DB struct + Backend string + BatchCommitInterval time.Duration + Bolt *kvdb.BoltConfig + Etcd *etcd.Config + NoGraphCache bool + Postgres *postgres.Config + func DefaultDB() *DB + func (db *DB) GetBackends(ctx context.Context, chanDBPath, walletDBPath, towerServerDBPath string, ...) (*DatabaseBackends, error) + func (db *DB) Init(ctx context.Context, dbPath string) error + func (db *DB) Validate() error + type DatabaseBackends struct + ChanStateDB kvdb.Backend + CloseFuncs map[string]func() error + DecayedLogDB kvdb.Backend + GraphDB kvdb.Backend + HeightHintDB kvdb.Backend + MacaroonDB kvdb.Backend + Remote bool + TowerClientDB kvdb.Backend + TowerServerDB kvdb.Backend + WalletDB btcwallet.LoaderOption + type DiskCheckConfig struct + RequiredRemaining float64 + type ExperimentalProtocol struct + type Gossip struct + ChannelUpdateInterval time.Duration + MaxChannelUpdateBurst int + PinnedSyncers discovery.PinnedSyncers + PinnedSyncersRaw []string + func (g *Gossip) Parse() error + type HealthCheckConfig struct + ChainCheck *CheckConfig + DiskCheck *DiskCheckConfig + RemoteSigner *CheckConfig + TLSCheck *CheckConfig + TorConnection *CheckConfig + func (h *HealthCheckConfig) Validate() error + type Invoices struct + HoldExpiryDelta uint32 + type LegacyProtocol struct + func (l *LegacyProtocol) LegacyOnion() bool + func (l *LegacyProtocol) NoStaticRemoteKey() bool + type Neutrino struct + AddPeers []string + AssertFilterHeader string + BanDuration time.Duration + BanThreshold uint32 + BroadcastTimeout time.Duration + ConnectPeers []string + FeeURL string + MaxPeers int + PersistFilters bool + UserAgentName string + UserAgentVersion string + ValidateChannels bool + type Prometheus struct + func DefaultPrometheus() Prometheus + func (p *Prometheus) Enabled() bool + type ProtocolOptions struct + NoAnchors bool + NoScriptEnforcedLease bool + WumboChans bool + func (l *ProtocolOptions) NoAnchorCommitments() bool + func (l *ProtocolOptions) NoScriptEnforcementLease() bool + func (l *ProtocolOptions) Wumbo() bool + type RPCMiddleware struct + Enable bool + InterceptTimeout time.Duration + Mandatory []string + func DefaultRPCMiddleware() *RPCMiddleware + func (r *RPCMiddleware) Validate() error + type RemoteSigner struct + Enable bool + MacaroonPath string + MigrateWatchOnly bool + RPCHost string + TLSCertPath string + Timeout time.Duration + func (r *RemoteSigner) Validate() error + type Routing struct + AssumeChannelValid bool + StrictZombiePruning bool + type TCPResolver = func(network, addr string) (*net.TCPAddr, error) + type Tor struct + Active bool + Control string + DNS string + Password string + PrivateKeyPath string + SOCKS string + SkipProxyForClearNetTargets bool + StreamIsolation bool + TargetIPAddress string + V2 bool + V3 bool + WatchtowerKeyPath string + type Validator interface + Validate func() error + type Watchtower struct + Active bool + TowerDir string + type Workers struct + Read int + Sig int + Write int + func (w *Workers) Validate() error + type WtClient struct + Active bool + PrivateTowerURIs []string + SweepFeeRate uint64 + func (c *WtClient) Validate() error