Documentation ¶
Index ¶
- Variables
- 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 DeleteComponnent(systemID string, deleteTime time.Time) error
- func DeleteSystem(systemTemplateID string, deleteTime time.Time) (string, error)
- func DeleteSystemTemplate(systemTemplate *v1.SystemTemplate) error
- func FindCanary(namespace, name string) (*pkg.Canary, error)
- func FindCheck(canary pkg.Canary, name string) (*pkg.Check, error)
- func GetAllCanaries() ([]v1.Canary, error)
- func GetAllChecks() ([]pkg.Check, error)
- func GetAllSystemTemplates() ([]v1.SystemTemplate, 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 PersistCanary(canary v1.Canary, source string) (string, bool, error)
- func PersistCheck(check pkg.Check) (string, error)
- func PersistComponent(component *pkg.Component) (string, error)
- func PersistSystem(system *pkg.System) error
- func PersistSystemTemplate(system *v1.SystemTemplate) (string, bool, error)
- func PersistSystems(results []*pkg.System) 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 ConvertNamedParams ¶ added in v0.38.85
func CreateCanary ¶ added in v0.38.85
func DeleteCanary ¶ added in v0.38.85
func DeleteComponnent ¶ added in v0.38.106
func DeleteSystem ¶ added in v0.38.106
func DeleteSystemTemplate ¶ added in v0.38.106
func DeleteSystemTemplate(systemTemplate *v1.SystemTemplate) error
func GetAllCanaries ¶ added in v0.38.85
func GetAllChecks ¶ added in v0.38.85
func GetAllSystemTemplates ¶ added in v0.38.106
func GetAllSystemTemplates() ([]v1.SystemTemplate, error)
func IsConfigured ¶ added in v0.38.85
func IsConfigured() bool
func IsConnected ¶ added in v0.38.85
func IsConnected() bool
func PersistCanary ¶ added in v0.38.85
func PersistComponent ¶ added in v0.38.85
func PersistSystem ¶ added in v0.38.106
func PersistSystemTemplate ¶ added in v0.38.106
func PersistSystemTemplate(system *v1.SystemTemplate) (string, bool, error)
func PersistSystems ¶ added in v0.38.106
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.