libs5-go/config/config.go

23 lines
344 B
Go
Raw Normal View History

package config
2024-01-06 11:33:46 +00:00
import (
"git.lumeweb.com/LumeWeb/libs5-go/ed25519"
bolt "go.etcd.io/bbolt"
"go.uber.org/zap"
)
type NodeConfig struct {
P2P P2PConfig
2024-01-06 18:15:29 +00:00
KeyPair *ed25519.KeyPairEd25519
DB *bolt.DB
2024-01-06 11:33:46 +00:00
Logger *zap.Logger
}
type P2PConfig struct {
Network string
Peers PeersConfig
}
type PeersConfig struct {
Initial []string
}