statping/types/configs/struct.go

31 lines
1.1 KiB
Go
Raw Normal View History

2020-03-04 10:29:00 +00:00
package configs
2020-03-10 05:24:35 +00:00
import "github.com/statping/statping/database"
2020-03-04 10:29:00 +00:00
const SqliteFilename = "statping.db"
// DbConfig struct is used for the Db connection and creates the 'config.yml' file
type DbConfig struct {
DbConn string `yaml:"connection" json:"connection"`
DbHost string `yaml:"host" json:"-"`
DbUser string `yaml:"user" json:"-"`
DbPass string `yaml:"password" json:"-"`
DbData string `yaml:"database" json:"-"`
DbPort int `yaml:"port" json:"-"`
ApiKey string `yaml:"api_key" json:"-"`
ApiSecret string `yaml:"api_secret" json:"-"`
Project string `yaml:"-" json:"-"`
Description string `yaml:"-" json:"-"`
Domain string `yaml:"-" json:"-"`
Username string `yaml:"-" json:"-"`
Password string `yaml:"-" json:"-"`
Email string `yaml:"-" json:"-"`
Error error `yaml:"-" json:"-"`
Location string `yaml:"location" json:"-"`
SqlFile string `yaml:"sqlfile,omitempty" json:"-"`
LocalIP string `yaml:"-" json:"-"`
filename string `yaml:"-" json:"-"`
2020-03-10 05:24:35 +00:00
Db database.Database `yaml:"-" json:"-"`
2020-03-04 10:29:00 +00:00
}