Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeDifferenceTooLarge = errors.New("time difference between master host, and database host are is large. The difference should not exceed 2 seconds")
Functions ¶
func DatabaseOutOfSync ¶
func DatabaseOutOfSync(c config.StaticConfig, dbTime time.Time) error
DatabaseOutOfSync ensures that drift between database is not larger than DatabaseMaxTimeDriftSeconds
func LoadConfig ¶
func LoadConfig(db *gorm.DB, cnf *config.DynamicConfig) error
func LoadReport ¶
Types ¶
type Store ¶
type Store struct { Round roundrepo.Repo Host hostrepo.Repo HostGroup hostgrouprepo.Repo Service servicerepo.Repo ServiceGroup servicegrouprepo.Repo Team teamrepo.Repo Check checkrepo.Repo Property propertyrepo.Repo Config configrepo.Repo Report reportrepo.Repo Policy policyrepo.Repo Users userrepo.Repo }
Store is a single collection of all Repositories
Click to show internal directories.
Click to hide internal directories.