libs5-go/config/config.go

34 lines
532 B
Go

package config
import (
"git.lumeweb.com/LumeWeb/libs5-go/ed25519"
bolt "go.etcd.io/bbolt"
"go.uber.org/zap"
)
type NodeConfig struct {
P2P P2PConfig
KeyPair *ed25519.KeyPairEd25519
DB *bolt.DB
Logger *zap.Logger
HTTP HTTPConfig
}
type P2PConfig struct {
Network string
Peers PeersConfig
MaxOutgoingPeerFailures uint
}
type PeersConfig struct {
Initial []string
}
type HTTPAPIConfig struct {
Domain string
Port uint
}
type HTTPConfig struct {
API HTTPAPIConfig
}