cronjob

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: GPL-3.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(data *CountParam) (int64, error)

func Create

func Create(data *CreateParam) (uint, error)

func Delete

func Delete(data *DeleteParam) error

func Fetch

func Fetch(data *FetchParam) (*tables.Cronjob, error)

func FetchAll

func FetchAll(data *FetchAllParam) ([]*tables.Cronjob, error)

func Replace

func Replace(data *ReplaceParam) error

func Update

func Update(data *UpdateParam) error

Types

type CountParam

type CountParam = FetchAllParam

type CreateParam

type CreateParam struct {
	Rd         uint   `json:"rd"`
	Name       string `json:"name" binding:"required"`
	Second     string `json:"second" binding:"required"`
	Minute     string `json:"minute" binding:"required"`
	Hour       string `json:"hour" binding:"required"`
	DayOfMonth string `json:"day_of_month" binding:"required"`
	Month      string `json:"month" binding:"required"`
	DayOfWeek  string `json:"day_of_week" binding:"required"`
	Type       string `json:"type" binding:"required"`
	Timeout    uint   `json:"timeout" binding:"required"`
	Directory  string `json:"directory" binding:"required"`
	Content    string `json:"content" binding:"required"`
	Deliver    string `json:"deliver"`
	EntryId    int64  `json:"entry_id"`
}

type DeleteParam

type DeleteParam = FetchParam

type FetchAllParam

type FetchAllParam struct {
	Type string `json:"type"`
}

type FetchParam

type FetchParam struct {
	Rd      uint  `json:"rd"`
	EntryId int64 `json:"entry_id"`
}

type ReplaceParam

type ReplaceParam = CreateParam

type UpdateParam

type UpdateParam = CreateParam

Jump to

Keyboard shortcuts

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