mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
parent
5f339ab312
commit
dbb420f79e
563 changed files with 64363 additions and 10714 deletions
20
pkg/csconfig/database.go
Normal file
20
pkg/csconfig/database.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
package csconfig
|
||||
|
||||
import log "github.com/sirupsen/logrus"
|
||||
|
||||
type DatabaseCfg struct {
|
||||
User string `yaml:"user"`
|
||||
Password string `yaml:"password"`
|
||||
DbName string `yaml:"db_name"`
|
||||
Host string `yaml:"host"`
|
||||
Port int `yaml:"port"`
|
||||
DbPath string `yaml:"db_path"`
|
||||
Type string `yaml:"type"`
|
||||
Flush *FlushDBCfg `yaml:"flush"`
|
||||
LogLevel *log.Level `yaml:"log_level"`
|
||||
}
|
||||
|
||||
type FlushDBCfg struct {
|
||||
MaxItems *int `yaml:"max_items"`
|
||||
MaxAge *string `yaml:"max_age"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue