Documentation ¶
Index ¶
- Constants
- func DefaultGormConfig() *gorm.Config
- func Migrate(connection string) error
- func NewDB(connection string) (*sql.DB, error)
- func NewGorm(connection string, config *gorm.Config) (*gorm.DB, error)
- func NewPgxPool(connection string) (*pgxpool.Pool, error)
- func QueryCheckSummary(dbpool *pgxpool.Pool) (models.Checks, error)
- func QueryTopology(dbpool *pgxpool.Pool, params TopologyOptions) ([]*models.Component, error)
- func RefreshCheckStatusSummary(dbpool *pgxpool.Pool) error
- type TopologyOptions
Constants ¶
View Source
const DefaultDepth = 5
Variables ¶
This section is empty.
Functions ¶
func DefaultGormConfig ¶ added in v1.0.6
func NewGorm ¶
creates a new Gorm DB connection using the global pgx connection pool, must be called after NewPgxPool
func QueryCheckSummary ¶ added in v1.0.34
func QueryTopology ¶ added in v1.0.24
func RefreshCheckStatusSummary ¶ added in v1.0.34
Types ¶
Click to show internal directories.
Click to hide internal directories.