Documentation ¶
Index ¶
- func CreateToken(appId string, openId int64) (tokenStr string, err error)
- func CronDay(fns ...func())
- func CronHour(fns ...func())
- func CronMinute(fns ...func())
- func Crond(d time.Duration, fns ...func())
- func DB(names ...string) *goo_db.XOrm
- func GRPCContext(ctx *Context) context.Context
- func Handler(controller iController) gin.HandlerFunc
- func LoadConfig(yamlFile string, conf interface{}) (err error)
- func NewGRPCServer(cfg goo_grpc.Config) *goo_grpc.Server
- func Redis(names ...string) *goo_redis.Redis
- func ValidationMessage(err error, messages map[string]string) string
- type Context
- type Env
- type HandlerFunc
- type Option
- type Response
- type Server
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GRPCContext ¶
func LoadConfig ¶
Types ¶
type Context ¶
func NewContext ¶ added in v1.0.43
func (*Context) AbortWithStatusJSON ¶ added in v1.0.43
中止并返回json数据
type HandlerFunc ¶ added in v1.0.36
type HandlerFunc func(ctx *Context)
type Response ¶
type Response struct { Code int32 `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` Errors []interface{} `json:"-"` }
func ErrorWithValidate ¶ added in v1.0.44
Click to show internal directories.
Click to hide internal directories.