feat: add http config structs
This commit is contained in:
parent
584057fb8a
commit
8a91b912c0
|
@ -11,6 +11,7 @@ type NodeConfig struct {
|
||||||
KeyPair *ed25519.KeyPairEd25519
|
KeyPair *ed25519.KeyPairEd25519
|
||||||
DB *bolt.DB
|
DB *bolt.DB
|
||||||
Logger *zap.Logger
|
Logger *zap.Logger
|
||||||
|
HTTP HTTPConfig
|
||||||
}
|
}
|
||||||
type P2PConfig struct {
|
type P2PConfig struct {
|
||||||
Network string
|
Network string
|
||||||
|
@ -20,3 +21,12 @@ type P2PConfig struct {
|
||||||
type PeersConfig struct {
|
type PeersConfig struct {
|
||||||
Initial []string
|
Initial []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type HTTPAPIConfig struct {
|
||||||
|
Domain string
|
||||||
|
Port uint
|
||||||
|
}
|
||||||
|
|
||||||
|
type HTTPConfig struct {
|
||||||
|
API HTTPAPIConfig
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue