Documentation ¶
Index ¶
- Variables
- 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.Orm
- func FlagInit()
- func GrpcContext(c *gin.Context) context.Context
- func Handler(controller iController) gin.HandlerFunc
- func LoadConfig(yamlFile string, conf interface{}) (err error)
- func Redis(names ...string) *goo_redis.Redis
- func ValidationMessage(err error, messages map[string]string) string
- type Env
- type LocalUpload
- type Option
- func CorsHeaderOption(corsHeaders ...string) Option
- func EnvOption(env Env) Option
- func NoAccessPathsOption(noAccessPaths ...string) Option
- func NoLogPathsOption(noLogPaths ...string) Option
- func PProfEnableOption(pprofEnable bool) Option
- func Router() Option
- func ServerNameOption(serverName string) Option
- type Response
- type Server
- type Token
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LoadConfig ¶
Types ¶
type LocalUpload ¶ added in v1.1.4
type LocalUpload struct { }
type Response ¶
type Response struct { Code int32 `json:"code"` Message string `json:"message"` Data interface{} `json:"data,omitempty"` Errors []interface{} `json:"-"` }
func ErrorWithValidate ¶ added in v1.0.44
Click to show internal directories.
Click to hide internal directories.