Documentation
¶
Index ¶
- func AuthAdmin(r *ghttp.Request)
- func AuthBase(r *ghttp.Request, name string)
- func AuthIndex(r *ghttp.Request)
- func CreateCron(ctx context.Context, time string, name string, operate func())
- func GetCapitalPass(val string) string
- func GetResult(ctx context.Context, url string, data g.Map, va *gvar.Var) (string, error)
- 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 Start(address, agent, sqlHost, sqlPort, sqlRoot, sqlPass, baseName string, ...) *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 GetCapitalPass ¶ added in v0.0.6
GetCapitalPass MD5化并转换为大写
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 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.