forked from forbole/juno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
27 lines (23 loc) · 1.03 KB
/
types.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
package v4
import (
databaseconfig "github.com/gotabit/juno/v5/database/config"
loggingconfig "github.com/gotabit/juno/v5/logging/config"
"github.com/gotabit/juno/v5/modules/pruning"
"github.com/gotabit/juno/v5/modules/telemetry"
nodeconfig "github.com/gotabit/juno/v5/node/config"
parserconfig "github.com/gotabit/juno/v5/parser/config"
pricefeedconfig "github.com/gotabit/juno/v5/pricefeed"
"github.com/gotabit/juno/v5/types/config"
)
// Config defines all necessary juno configuration parameters.
type Config struct {
Chain config.ChainConfig `yaml:"chain"`
Node nodeconfig.Config `yaml:"node"`
Parser parserconfig.Config `yaml:"parsing"`
Database databaseconfig.Config `yaml:"database"`
Logging loggingconfig.Config `yaml:"logging"`
// The following are there to support modules which config are present if they are enabled
Telemetry *telemetry.Config `yaml:"telemetry,omitempty"`
Pruning *pruning.Config `yaml:"pruning,omitempty"`
PriceFeed *pricefeedconfig.Config `yaml:"pricefeed,omitempty"`
}