feat: add http config structs

This commit is contained in:
Derrick Hammer 2024-01-10 09:35:47 -05:00
parent 584057fb8a
commit 8a91b912c0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,7 @@ type NodeConfig struct {
KeyPair *ed25519.KeyPairEd25519
DB *bolt.DB
Logger *zap.Logger
HTTP HTTPConfig
}
type P2PConfig struct {
Network string
@ -20,3 +21,12 @@ type P2PConfig struct {
type PeersConfig struct {
Initial []string
}
type HTTPAPIConfig struct {
Domain string
Port uint
}
type HTTPConfig struct {
API HTTPAPIConfig
}