forked from xuperchain/burrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
33 lines (29 loc) · 767 Bytes
/
config.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
package config
import (
"github.com/hyperledger/burrow/vent/types"
)
const DefaultPostgresDBURL = "postgres://postgres@localhost:5432/postgres?sslmode=disable"
// VentConfig is a set of configuration parameters
type VentConfig struct {
DBAdapter string
DBURL string
DBSchema string
GRPCAddr string
HTTPAddr string
LogLevel string
SpecFileOrDirs []string
AbiFileOrDirs []string
DBBlockTx bool
}
// DefaultFlags returns a configuration with default values
func DefaultVentConfig() *VentConfig {
return &VentConfig{
DBAdapter: types.PostgresDB,
DBURL: DefaultPostgresDBURL,
DBSchema: "vent",
GRPCAddr: "localhost:10997",
HTTPAddr: "0.0.0.0:8080",
LogLevel: "debug",
DBBlockTx: false,
}
}