Documentation
¶
Index ¶
- func AuthAdmin(r *ghttp.Request)
- func AuthBase(r *ghttp.Request, name string)
- func AuthIndex(r *ghttp.Request)
- func Compress(filePath string) string
- 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 InitLog(path string)
- func LogDebug(text ...interface{})
- func LogError(text ...interface{})
- func LogInfo(text ...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 Start(address, agent string, maxSessionTime time.Duration, isApi bool, ...) *ghttp.Server
- func StartCrons(name string)
- func StopCron(name string)
- func Transaction(function func() error)
- type ApiRes
- type Json
- type PageSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.