Add bbolt store

This commit is contained in:
2022-08-31 23:22:20 +02:00
parent 52c2bd1060
commit 940a512d56
7 changed files with 294 additions and 68 deletions

View File

@@ -20,12 +20,17 @@ type StoreConfig struct {
Type string `toml:"Type"`
EnableCache bool `toml:"EnableCache"`
Postgres PostgresStoreConfig `toml:"Postgres"`
Bolt BoltStoreConfig `toml:"Bolt"`
}
type PostgresStoreConfig struct {
DSN string `toml:"DSN"`
}
type BoltStoreConfig struct {
DBPath string `toml:"DBPath"`
}
type HoneypotConfig struct {
ListenAddr string `toml:"ListenAddr"`
LogLevel string `toml:"LogLevel"`