db

package
v0.0.0-...-6f9beb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrateAll

func AutoMigrateAll()

func AutoMigrateSingle

func AutoMigrateSingle(model interface{})

func GetAverageCheck

func GetAverageCheck(host int) (models.Checks, error)

TODO: Get average checks for a host in a time range x days ago

func GetCronJobs

func GetCronJobs(selected int) ([]models.Jobs, error)

func GetJob

func GetJob(host int) (models.Jobs, error)

func GetLastCheck

func GetLastCheck(host int) (models.Checks, error)

func Handler

func Handler() *gorm.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL