Documentation ¶
Index ¶
- Variables
- func AuthMiddleware() gin.HandlerFunc
- func BuildGlobalDao() (*gorm.DB, error)
- func Get(c *gin.Context)
- func GetAuth(c *gin.Context)
- func Islogin(c *gin.Context) bool
- func LoadConfig(configPath string)
- func SetupV1AuthRouter(r *gin.Engine)
- func SetupV1Router(r *gin.Engine)
- func ShowData(c *gin.Context, data interface{})
- func ShowError(c *gin.Context, message string)
- func ShowErrorParams(c *gin.Context, message string)
- func ShowNotLogin(c *gin.Context)
- func ShowSuccess(c *gin.Context, message string)
- func ShowValidatorError(c *gin.Context, message interface{})
- func Version(c *gin.Context)
- type ConfigOptions
- type FormUser
- type ServerOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GitCommit string BuildTime string )
View Source
var GlobalConfig = &ConfigOptions{}
View Source
var GlobalDB = &gorm.DB{}
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware() gin.HandlerFunc
func BuildGlobalDao ¶
func LoadConfig ¶
func LoadConfig(configPath string)
func SetupV1AuthRouter ¶
func SetupV1Router ¶
func ShowErrorParams ¶
func ShowNotLogin ¶
func ShowSuccess ¶
func ShowValidatorError ¶
Types ¶
type ConfigOptions ¶
type ConfigOptions struct { Server ServerOptions DB dao.DBOptions }
type ServerOptions ¶
type ServerOptions struct {
RunMode string
}
Click to show internal directories.
Click to hide internal directories.