Back to godoc.org

Package httpserver

v0.0.0-...-80b3c92
Latest Go to latest

The latest major version is .

Published: Jun 4, 2020 | License: MIT | Module: gitee.com/mysoft-free/cron-task

Index

Constants

const (
	TaskRunning        = "isRunning"
	TaskFin            = "isFinished"
	TaskNotFound       = "没有找到任务"
	TaskAlreadyRunning = "已经有个任务在执行中,请等待!"
	Res_Ok             = "ok"
	Res_Fail           = "fail"
)

func BuildKey

func BuildKey(taskId string) string

Build for key

func CheckAuth

func CheckAuth(auth authorize.IAuthorize, ctx *context.Context) gin.HandlerFunc

授权校验

func Run

func Run(context *context.Context, storage storage.IStorage)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier