Documentation ¶
Index ¶
- Variables
- func ClientIP(c *gin.Context) string
- func CreateToken(appId string, openid int64) (tokenStr string, err error)
- func DB(names ...string) *goo_db.Client
- func ES() *goo_es.ESClient
- func FlagInit()
- func GrpcContext(c *gin.Context) context.Context
- func Handler(controller iController) gin.HandlerFunc
- func LoadConfig(yamlFile string, conf interface{}) (err error)
- func Mongo(names ...string) *mongo.Database
- func MongoClient(names ...string) *goo_mongo.Client
- func Redis(names ...string) *goo_redis.Client
- func RequestBody(c *gin.Context) interface{}
- func RequestId(c *gin.Context) string
- func ValidationMessage(err error, messages map[string]string) string
- type Encryption
- type Env
- type LocalUpload
- type Option
- func CorsHeaderOption(corsHeaders ...string) Option
- func EnableEncryptionOption(encryptKey, encryptSecret string, excludeUris ...string) Option
- func EnvOption(env Env) Option
- func NoAccessPathsOption(noAccessPaths ...string) Option
- func NoLogPathsOption(noLogPaths ...string) Option
- func PProfEnableOption(pprofEnable bool) Option
- func ServerNameOption(serverName string) Option
- type Response
- type Server
- type Token
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LoadConfig ¶
func MongoClient ¶ added in v1.1.44
Types ¶
type Encryption ¶ added in v1.1.78
type LocalUpload ¶ added in v1.1.4
type LocalUpload struct { }
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func EnableEncryptionOption ¶ added in v1.1.14
启用加密传输
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.