cronjob

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, r *CreateReq) (*models.CronJob, error)

func GetBySFID

func GetBySFID(ctx context.Context, id types.SFID) (*models.CronJob, error)

func RemoveBySFID

func RemoveBySFID(ctx context.Context, id types.SFID) error

func Run

func Run(ctx context.Context)

Types

type CondArgs

type CondArgs struct {
	ProjectID  types.SFID   `name:"-"`
	CronJobIDs []types.SFID `in:"query" name:"cronJobID,omitempty"`
	EventTypes []string     `in:"query" name:"eventType,omitempty"`
}

func (*CondArgs) Condition

func (r *CondArgs) Condition() builder.SqlCondition

type CreateReq

type CreateReq struct {
	models.CronJobInfo
}

type ListReq

type ListReq struct {
	CondArgs
	datatypes.Pager
}

func (*ListReq) Additions

func (r *ListReq) Additions() builder.Additions

type ListRsp

type ListRsp struct {
	Data  []models.CronJob `json:"data"`
	Total int64            `json:"total"`
}

func List

func List(ctx context.Context, r *ListReq) (*ListRsp, error)

Jump to

Keyboard shortcuts

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