-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathutil.go
34 lines (28 loc) · 925 Bytes
/
util.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package mock
import (
"github.com/docker/docker/api/types/container"
)
// NetworkName is the name of the network we use in docker
const NetworkName container.NetworkMode = "lightning-network"
// MiningAddressName is the name of the mining address argument passed to BtcdContainer
const MiningAddressName = "MINING_ADDRESS"
// LnCLIPrefix defines a constant for the network all command use
// this is a function to make it immutable
func LnCLIPrefix() []string {
return []string{"lncli", "--rpcserver=localhost:10009", "--network=simnet"}
}
// EnvArgs defines a list of arguments that must be used with the rpc server
// this is a function to make it immutable
func EnvArgs() []string {
return []string{
"RPCUSER",
"RPCPASS",
"NETWORK=simnet",
"DEBUG",
}
}
// Volumes defines mounted volumes
// this is a function to make it immutable
func Volumes() []string {
return []string{"shared", "bitcoin", "lnd"}
}