hotgo/server/internal/consts/context.go

16 lines
482 B
Go
Raw Normal View History

2022-11-24 23:37:34 +08:00
// Package consts
2022-02-25 17:11:17 +08:00
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2023 HotGo CLI
2022-11-24 23:37:34 +08:00
// @Author Ms <133814250@qq.com>
2022-02-25 17:11:17 +08:00
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package consts
2023-05-31 18:01:50 +08:00
type CtxKey string
2022-11-24 23:37:34 +08:00
// ContextKey 上下文
2022-02-25 17:11:17 +08:00
const (
2023-05-31 18:01:50 +08:00
ContextHTTPKey CtxKey = "httpContext" // http上下文变量名称
ContextKeyCronArgs CtxKey = "cronArgs" // 定时任务参数
ContextKeyCronSn CtxKey = "cronSn" // 定时任务序列号
2022-02-25 17:11:17 +08:00
)