httpserver

package
v0.0.0-...-80b3c92 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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