Documentation ¶
Index ¶
- Variables
- func AddSystem(system *pkg.System, cols ...string) (string, error)
- func AddSystemSpec(id string, system v1.System) (string, error)
- func Cleanup()
- func ConvertNamedParams(sql string, namedArgs map[string]interface{}) (string, []interface{})
- func CreateCanary(canary *pkg.Canary) error
- func CreateCheck(canary pkg.Canary, check *pkg.Check) error
- func DeleteCanary(canary v1.Canary) error
- func FindCanary(namespace, name string) (*pkg.Canary, error)
- func FindCheck(canary pkg.Canary, name string) (*pkg.Check, error)
- func FindSystem(systemID, systemType string) (*models.System, error)
- func GetAllCanaries() ([]v1.Canary, error)
- func GetAllChecks() ([]pkg.Check, error)
- func GetCanary(id string) (*pkg.Canary, error)
- func GetCheck(id string) (*pkg.Check, error)
- func GetDB() (*sql.DB, error)
- func Init() error
- func IsConfigured() bool
- func IsConnected() bool
- func Migrate() error
- func NewComponentModel(component *pkg.Component) models.Component
- func NewSystemModel(system *pkg.System) models.System
- func Persist(results []*pkg.System) error
- func PersistCanary(canary v1.Canary, source string) (string, bool, error)
- func PersistCheck(check pkg.Check) (string, error)
- func PersistComponent(systemID string, component *pkg.Component, parent *models.Component) error
- func QueryNamed(ctx context.Context, sql string, args map[string]interface{}) (pgx.Rows, error)
- func Start(ctx context.Context) error
- func StopServer() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectionString string
View Source
var DefaultExpiryDays int
View Source
var Gorm *gorm.DB
View Source
var Pool *pgxpool.Pool
View Source
var PostgresServer *embeddedpostgres.EmbeddedPostgres
View Source
var Trace bool
Functions ¶
func AddSystemSpec ¶ added in v0.38.85
func ConvertNamedParams ¶ added in v0.38.85
func CreateCanary ¶ added in v0.38.85
func DeleteCanary ¶ added in v0.38.85
func FindSystem ¶ added in v0.38.85
func GetAllCanaries ¶ added in v0.38.85
func GetAllChecks ¶ added in v0.38.85
func IsConfigured ¶ added in v0.38.85
func IsConfigured() bool
func IsConnected ¶ added in v0.38.85
func IsConnected() bool
func NewComponentModel ¶ added in v0.38.85
func PersistCanary ¶ added in v0.38.85
func PersistComponent ¶ added in v0.38.85
func QueryNamed ¶ added in v0.38.85
func StopServer ¶ added in v0.38.83
func StopServer() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.