Documentation ¶
Index ¶
- func Count(data *CountParam) (int64, error)
- func Create(data *CreateParam) (uint, error)
- func Delete(data *DeleteParam) error
- func Fetch(data *FetchParam) (*tables.Cronjob, error)
- func FetchAll(data *FetchAllParam) ([]*tables.Cronjob, error)
- func Replace(data *ReplaceParam) error
- func Update(data *UpdateParam) error
- type CountParam
- type CreateParam
- type DeleteParam
- type FetchAllParam
- type FetchParam
- type ReplaceParam
- type UpdateParam
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 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 ReplaceParam ¶
type ReplaceParam = CreateParam
type UpdateParam ¶
type UpdateParam = CreateParam
Click to show internal directories.
Click to hide internal directories.