2019-03-07 10:37:28 +00:00
package main
type lndConfig struct {
Host string ` long:"host" description:"lnd instance rpc address" `
MacaroonPath string ` long:"macaroonpath" description:"Path to lnd macaroon" `
TLSPath string ` long:"tlspath" description:"Path to lnd tls certificate" `
}
type viewParameters struct { }
type config struct {
2019-03-21 00:16:07 +00:00
ShowVersion bool ` short:"V" long:"version" description:"Display version information and exit" `
Insecure bool ` long:"insecure" description:"disable tls" `
Network string ` long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet" `
SwapServer string ` long:"swapserver" description:"swap server address host:port" `
RPCListen string ` long:"rpclisten" description:"Address to listen on for gRPC clients" `
RESTListen string ` long:"restlisten" description:"Address to listen on for REST clients" `
2019-03-07 10:37:28 +00:00
Lnd * lndConfig ` group:"lnd" namespace:"lnd" `
View viewParameters ` command:"view" alias:"v" description:"View all swaps in the database. This command can only be executed when loopd is not running." `
}
2019-03-22 04:53:50 +00:00
const (
mainnetServer = "swap.lightning.today:11009"
testnetServer = "test.swap.lightning.today:11009"
)
2019-03-07 10:37:28 +00:00
var defaultConfig = config {
Network : "mainnet" ,
2019-03-22 04:53:50 +00:00
SwapServer : mainnetServer ,
2019-03-12 22:35:53 +00:00
RPCListen : "localhost:11010" ,
RESTListen : "localhost:8081" ,
2019-03-07 10:37:28 +00:00
Insecure : false ,
Lnd : & lndConfig {
Host : "localhost:10009" ,
} ,
}