Documentation ¶
Index ¶
- func CreateNewSchedule(schedule database.Schedule) error
- func GetUserScheduleById(username string, id uint) (database.Schedule, bool, error)
- func Init() error
- func InitLogger(logger *logrus.Logger)
- func ModifyScheduleById(id uint, newSchedule database.Schedule) error
- func RemoveScheduleById(id uint) error
- type UserSchedule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewSchedule ¶
Creates and starts a schedule based on the provided input data
func GetUserScheduleById ¶
Gets a schedule based on its id and its owner's username
func InitLogger ¶
func ModifyScheduleById ¶
Modify an already set up schedule
func RemoveScheduleById ¶
Aborts and deletes a schedule based on its id
Types ¶
type UserSchedule ¶
type UserSchedule struct { Id uint `json:"id"` Name string `json:"name"` Hour uint `json:"hour"` Minute uint `json:"minute"` NextRun string `json:"nextRun"` HomescriptCode string `json:"homescriptCode"` // Will be executed if the scheduler runs the job }
Used for listing personal schedules
Click to show internal directories.
Click to hide internal directories.