集群增加是否远程启动选项

This commit is contained in:
GoEdgeLab
2022-09-17 15:11:34 +08:00
parent ae0bfd368a
commit 26c32e0621
7 changed files with 77 additions and 53 deletions

View File

@@ -5,6 +5,14 @@ import (
"time"
)
func IsRest(ctx context.Context) bool {
if ctx == nil {
return false
}
_, ok := ctx.(*PlainContext)
return ok
}
type PlainContext struct {
UserType string
UserId int64