Documentation ¶
Index ¶
- Constants
- Variables
- func AuthAdmin(r *ghttp.Request)
- func AuthBase(r *ghttp.Request, name string)
- func AuthIndex(r *ghttp.Request)
- func Compress(filePath string) string
- func ConfigInit()
- func CreateCron(ctx context.Context, time string, name string, operate func())
- func CreateDB(ctx context.Context, sqlHost, sqlPort, sqlRoot, sqlPass, baseName string, ...)
- func CreateFileDir() error
- func GetCapitalPass(val string) string
- func GetResult(ctx context.Context, url string, data g.Map, va *gvar.Var) (string, error)
- func InStrArray(ext string, code int) bool
- func LogDeBug(content ...interface{})
- func LogError(content ...interface{})
- func LogInfo(content ...interface{})
- func LoginJson(r *ghttp.Request, msg string, data ...interface{})
- func MiddlewareError(r *ghttp.Request)
- func NoLogin(r *ghttp.Request)
- func PostResult(ctx context.Context, url string, data g.Map, header string, class string) (string, error)
- func RemoveCron(name string)
- func ResponseJson(ctx context.Context, data interface{})
- func SearchCron(name string) *gcron.Entry
- func Sha256(src string) string
- func Start(agent string, maxSessionTime time.Duration, isApi bool, maxBody ...int64) *ghttp.Server
- func StartCrons(name string)
- func StopCron(name string)
- func Transaction(function func() error)
- type ApiRes
- type Json
- type Logs
- type PageSize
Constants ¶
View Source
const BaseConfig = `` /* 1260-byte string literal not displayed */
Variables ¶
View Source
var ConfigPath = gfile.Pwd() + "/manifest/config/config.yaml"
Functions ¶
func ConfigInit ¶ added in v1.0.32
func ConfigInit()
func CreateCron ¶ added in v0.0.6
CreateCron 创建定时任务
func CreateFileDir ¶ added in v1.0.10
func CreateFileDir() error
func GetCapitalPass ¶ added in v0.0.6
GetCapitalPass MD5化并转换为大写
func InStrArray ¶ added in v1.0.10
func PostResult ¶ added in v0.0.6
func PostResult(ctx context.Context, url string, data g.Map, header string, class string) (string, error)
PostResult 建立POST请求并返回结果
func ResponseJson ¶
func SearchCron ¶ added in v1.0.10
SearchCron 查询定时任务运行状态 如果定时任务未运行则返回NIL 运行则返回运行状态
Types ¶
type ApiRes ¶
type ApiRes struct {
// contains filtered or unexported fields
}
func (*ApiRes) FileDownload ¶ added in v1.0.17
func (*ApiRes) FileSelect ¶ added in v1.0.17
Click to show internal directories.
Click to hide internal directories.