Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronJob ¶
type CronJob struct {
ID string
IsActive bool
Function string
Workload string
CronTime string
TimeZone string
Backend string
Created time.Time
}
CronJob is the normalized format interfacing with API handlers
type DB ¶
type DB interface {
GetDistinctActiveFunctions() ([]string, error)
GetJobs(function string) ([]CronJob, error)
UpdateJob(cronJob CronJob) error
AddJob(job CronJob) error
DeleteJob(jobID string) error
}
DB is required type when registering API handlers
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
MongoDB is the visible DB interface used in server
func NewMongoDB ¶
NewMongoDB attempts to connect with DB and errs if problems are found
func (*MongoDB) GetDistinctActiveFunctions ¶
GetDistinctActiveFunctions returns a list of functions with active jobs
Click to show internal directories.
Click to hide internal directories.