forked from seeleteam/go-seele
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
41 lines (31 loc) · 989 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
34
35
36
37
38
39
40
41
/**
* @file
* @copyright defined in go-seele/LICENSE
*/
package util
import (
"github.com/seeleteam/go-seele/core"
"github.com/seeleteam/go-seele/log/comm"
"github.com/seeleteam/go-seele/metrics"
"github.com/seeleteam/go-seele/node"
"github.com/seeleteam/go-seele/p2p"
)
// Config is the Configuration of node
type Config struct {
//Config is the Configuration of log
LogConfig comm.LogConfig `json:"log"`
// basic config for Node
BasicConfig node.BasicConfig `json:"basic"`
// The configuration of p2p network
P2PConfig p2p.Config `json:"p2p"`
// HttpServer config for http server
HTTPServer node.HTTPServer `json:"httpServer"`
// The configuration of websocket rpc service
WSServerConfig node.WSServerConfig `json:"wsserver"`
// The configuration of ipc rpc service
Ipcconfig node.IpcConfig `json:"ipcconfig"`
// metrics config info
MetricsConfig *metrics.Config `json:"metrics"`
// genesis config info
GenesisConfig core.GenesisInfo `json:"genesis"`
}