cron

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveEvents

func RetrieveEvents(db *gorm.DB)

Types

type ApiResponse

type ApiResponse struct {
	CurrentTime string `json:"currentTime"`
	StartedTime string `json:"startedTime"`
	BuildInfo   string `json:"buildInfo"`
	ClusterID   string `json:"clusterID"`
	NSF         string `json:"nsf"`
	ApiBaseURL  string `json:"apiBaseURL"`
	EdgeUIAppID string `json:"edgeUIAppID"`
}

type Config

type Config struct {
	DB      database.DBConfig `json:"db,omitempty" yaml:"db,omitempty"`
	SetupDB bool              `json:"setup_db,omitempty" yaml:"setup_db,omitempty"`
}

func NewConfig

func NewConfig() *Config

type CronJob

type CronJob struct {
	Config *Config
	Cron   *cron.Cron
	DB     *gorm.DB
}

func NewCron

func NewCron(config *Config, db *gorm.DB) CronJob

type Metric

type Metric map[string]string

type PrometheusResponse

type PrometheusResponse struct {
	Status string
	Data   PrometheusResponseData
}

type PrometheusResponseData

type PrometheusResponseData struct {
	ResultType string
	Result     []PrometheusResponseObject
}

type PrometheusResponseObject

type PrometheusResponseObject struct {
	Metric Metric
	Value  []interface{}
}

Jump to

Keyboard shortcuts

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