File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ type lndConfig struct {
28
28
29
29
type viewParameters struct {}
30
30
31
- type config struct {
31
+ type Config struct {
32
32
ShowVersion bool `short:"V" long:"version" description:"Display version information and exit"`
33
33
Insecure bool `long:"insecure" description:"disable tls"`
34
34
Network string `long:"network" description:"network to run on" choice:"regtest" choice:"testnet" choice:"mainnet" choice:"simnet"`
@@ -60,8 +60,8 @@ const (
60
60
)
61
61
62
62
// DefaultConfig returns all default values for the Config struct.
63
- func DefaultConfig () config {
64
- return config {
63
+ func DefaultConfig () Config {
64
+ return Config {
65
65
Network : "mainnet" ,
66
66
RPCListen : "localhost:11010" ,
67
67
RESTListen : "localhost:8081" ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ type listenerCfg struct {
40
40
41
41
// daemon runs loopd in daemon mode. It will listen for grpc connections,
42
42
// execute commands and pass back swap status information.
43
- func daemon (config * config , lisCfg * listenerCfg ) error {
43
+ func daemon (config * Config , lisCfg * listenerCfg ) error {
44
44
lnd , err := lisCfg .getLnd (config .Network , config .Lnd )
45
45
if err != nil {
46
46
return err
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ type RPCConfig struct {
47
47
48
48
// newListenerCfg creates and returns a new listenerCfg from the passed config
49
49
// and RPCConfig.
50
- func newListenerCfg (config * config , rpcCfg RPCConfig ) * listenerCfg {
50
+ func newListenerCfg (config * Config , rpcCfg RPCConfig ) * listenerCfg {
51
51
return & listenerCfg {
52
52
grpcListener : func () (net.Listener , error ) {
53
53
// If a custom RPC listener is set, we will listen on
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
)
11
11
12
12
// getClient returns an instance of the swap client.
13
- func getClient (config * config , lnd * lndclient.LndServices ) (* loop.Client ,
13
+ func getClient (config * Config , lnd * lndclient.LndServices ) (* loop.Client ,
14
14
func (), error ) {
15
15
16
16
storeDir , err := getStoreDir (config .Network )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
)
11
11
12
12
// view prints all swaps currently in the database.
13
- func view (config * config , lisCfg * listenerCfg ) error {
13
+ func view (config * Config , lisCfg * listenerCfg ) error {
14
14
chainParams , err := swap .ChainParamsFromNetwork (config .Network )
15
15
if err != nil {
16
16
return err
You can’t perform that action at this time.
0 commit comments