httpv1

package
v1.6.22 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveJob

func ActiveJob(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func AddFunc

func AddFunc(quene delayquene.Quene, apiRedis *redis.Pool, lpool *luacore.LStatePool) func(w http.ResponseWriter, r *http.Request)

func AddJob

func AddJob(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func DumpAll

func DumpAll(m *migrate.Migrate) func(w http.ResponseWriter, r *http.Request)

func DumpBy

func DumpBy(m *migrate.Migrate) func(w http.ResponseWriter, r *http.Request)

func EditJob

func EditJob(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func GetGroupList

func GetGroupList(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func GetJobList

func GetJobList(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func GetNodeList

func GetNodeList(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func GroupInfo

func GroupInfo(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func GroupJobClear added in v1.1.0

func GroupJobClear(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func Import

func Import(m *migrate.Migrate) func(w http.ResponseWriter, r *http.Request)

func PauseJob

func PauseJob(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func RegisterGroup

func RegisterGroup(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func RemoveGroup added in v1.3.0

func RemoveGroup(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func RemoveJob

func RemoveJob(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func RemoveJobsByJobName added in v1.2.0

func RemoveJobsByJobName(quene delayquene.Quene) func(w http.ResponseWriter, r *http.Request)

func SetLogger

func SetLogger(l *logrus.Logger)

func Version

func Version(serverVersion string) func(w http.ResponseWriter, r *http.Request)

Types

type ActiveJobPayload

type ActiveJobPayload struct {
	GroupName string `json:"group_name"`
	JobId     string `json:"job_id"`
	Exectime  int64  `json:"exec_time"`
}

type AddFuncPayload

type AddFuncPayload struct {
	GroupName       string `json:"group_name"`
	Name            string `json:"name"`
	UseOtp          bool   `json:"use_otp"`
	DisableGroupOtp bool   `json:"disable_group_otp"`
	LuaBody         string `json:"lua_body"`
	Memo            string `sjon:"memo"`
}

type AddJobPayload

type AddJobPayload struct {
	GroupName       string `json:"group_name"`
	JobId           string `json:"job_id"`
	Name            string `json:"name"`
	Exectime        int64  `json:"exec_time"`
	RequestUrl      string `json:"request_url"`
	IntervalPattern string `json:"interval_pattern"`
	ExecCommand     string `json:"exec_command"`
	Timeout         int64  `json:"timeout"`
	UseGroupOtp     bool   `json:"use_group_otp"`
	Memo            string `json:"memo"`
}

type EditJobPayload

type EditJobPayload struct {
	GroupName  string `json:"group_name"`
	Id         string `json:"id"`
	RequestUrl string `json:"request_url"`
	ExecCmd    string `json:"exec_cmd"`
}

type GetJobsPayload

type GetJobsPayload struct {
	GroupName string `json:"group_name"`
}

type JobControlPayload

type JobControlPayload struct {
	GroupName string `json:"group_name"`
	JobId     string `json:"job_id"`
}

type RegisterGroupPayload

type RegisterGroupPayload struct {
	GroupName string `json:"group_name"`
}

type ResponseJobList

type ResponseJobList struct {
	Name            string `json:"name"`
	Id              string `json:"id"`
	Exectime        int64  `json:"exec_time"`
	OtpToken        string `json:"otp_token"`
	IntervalPattern string `json:"interval_pattern"`
	RequestUrl      string `json:"request_url"`
	ExecCmd         string `json:"exec_cmd"`
	GroupName       string `json:"group_name"`
	Active          bool   `json:"active"`
	Memo            string `json:"memo"`
}

Jump to

Keyboard shortcuts

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