Versions in this module Expand all Collapse all v0 v0.1.1-alpha Oct 14, 2023 v0.0.3 May 13, 2023 Changes in this version + var Conf = Config + var Ctx context.Context + var Flags = []cli.Flag + func CreateHTTPServer() + func GetVersion() int + func RegisterGetHandle(subPath string, handle Handle) + func RegisterGetHandleNoUserID(subPath string, handle Handle) + func RegisterPostHandle(subPath string, handle Handle) + func RegisterPostHandleNoUserID(subPath string, handle Handle) + type Config struct + Port int + Test bool + type Context struct + Body []byte + Ctx context.Context + Db *xorm.Engine + MqChannel *mqwrap.MqChannel + Params httprouter.Params + Query url.Values + Rds redis.Conn + UserID string + W http.ResponseWriter + func (ctx *Context) GetHTTPRequest() *http.Request + func (ctx *Context) WriteRsp(m *pb.HTTPResponse) + type Handle func(*Context)