-
Notifications
You must be signed in to change notification settings - Fork 119
/
app.go
49 lines (44 loc) · 1.89 KB
/
app.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package types
type Telemetry struct {
ServiceName string `toml:"service-name"`
Enabled bool `toml:"enabled"`
EnableHostname bool `toml:"enable-hostname"`
EnableHostnameLabel bool `toml:"enable-hostname-label"`
EnableServiceLabel bool `toml:"enable-service-label"`
PrometheusRetentionTime int `toml:"prometheus-retention-time"`
GlobalLabels []interface{} `toml:"global-labels"`
}
type API struct {
Enable bool `toml:"enable"`
Swagger bool `toml:"swagger"`
EnabledUnsafeCors bool `toml:"enabled-unsafe-cors"`
MaxOpenConnections int `toml:"max-open-connections"`
RPCReadTimeout int `toml:"rpc-read-timeout"`
RPCWriteTimeout int `toml:"rpc-write-timeout"`
RPCMaxBodyBytes int `toml:"rpc-max-body-bytes"`
Address string `toml:"address"`
}
type Grpc struct {
Enable bool `toml:"enable"`
Address string `toml:"address"`
}
type StateSync struct {
SnapshotInterval int `toml:"snapshot-interval"`
SnapshotKeepRecent int `toml:"snapshot-keep-recent"`
}
type AppTOML struct {
MinimumGasPrices string `toml:"minimum-gas-prices"`
Pruning string `toml:"pruning"`
PruningKeepRecent string `toml:"pruning-keep-recent"`
PruningKeepEvery string `toml:"pruning-keep-every"`
PruningInterval string `toml:"pruning-interval"`
HaltHeight int `toml:"halt-height"`
HaltTime int `toml:"halt-time"`
MinRetainBlocks int `toml:"min-retain-blocks"`
InterBlockCache bool `toml:"inter-block-cache"`
IndexEvents []interface{} `toml:"index-events"`
Telemetry Telemetry `toml:"telemetry"`
API API `toml:"api"`
Grpc Grpc `toml:"grpc"`
StateSync StateSync `toml:"state-sync"`
}