libs5-go/config/config.go

33 lines
470 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
2024-01-10 14:35:47 +00:00
HTTP HTTPConfig
2024-01-06 11:33:46 +00:00
}
type P2PConfig struct {
Network string
Peers PeersConfig
}
type PeersConfig struct {
Initial []string
}
2024-01-10 14:35:47 +00:00
type HTTPAPIConfig struct {
Domain string
Port uint
}
type HTTPConfig struct {
API HTTPAPIConfig
}