mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-20 15:24:23 +01:00
35 lines
1.5 KiB
Go
35 lines
1.5 KiB
Go
package main
|
|
|
|
type NodeConfig struct {
|
|
Name string `json:name,omitempty`
|
|
NodePubkey string `json:nodePubkey,omitempty`
|
|
LspdPrivateKey string `json:"lspdPrivateKey"`
|
|
Token string `json:"token"`
|
|
Host string `json:"host"`
|
|
PublicChannelAmount int64 `json:"publicChannelAmount,string"`
|
|
ChannelAmount uint64 `json:"channelAmount,string"`
|
|
ChannelPrivate bool `json:"channelPrivate"`
|
|
TargetConf uint32 `json:"targetConf,string"`
|
|
MinHtlcMsat uint64 `json:"minHtlcMsat,string"`
|
|
BaseFeeMsat uint64 `json:"baseFeeMsat,string"`
|
|
FeeRate float64 `json:"feeRate,string"`
|
|
TimeLockDelta uint32 `json:"timeLockDelta,string"`
|
|
ChannelFeePermyriad int64 `json:"channelFeePermyriad,string"`
|
|
ChannelMinimumFeeMsat int64 `json:"channelMinimumFeeMsat,string"`
|
|
AdditionalChannelCapacity int64 `json:"additionalChannelCapacity,string"`
|
|
MaxInactiveDuration uint64 `json:"maxInactiveDuration,string"`
|
|
Lnd *LndConfig `json:"lnd,omitempty"`
|
|
Cln *ClnConfig `json:"cln,omitempty"`
|
|
}
|
|
|
|
type LndConfig struct {
|
|
Address string `json:"address"`
|
|
Cert string `json:"cert"`
|
|
Macaroon string `json:"macaroon"`
|
|
}
|
|
|
|
type ClnConfig struct {
|
|
PluginAddress string `json:"pluginAddress"`
|
|
SocketPath string `json:"socketPath"`
|
|
}
|