Documentation ¶
Index ¶
- func App() *gin.Engine
- func DefaultApp() *gin.Engine
- func Init()
- func InitDefault()
- func Route(str string, handler HandleFunc, name string)
- type Context
- func (c *Context) Error(err error)
- func (c *Context) GetAdminer() *models.Adminer
- func (c *Context) GetRemote() string
- func (c *Context) GetSession() string
- func (c *Context) GetTime() int
- func (c *Context) GinCtx() *gin.Context
- func (c *Context) NewRequest(r interface{}) error
- func (c *Context) Render(response *api.Response)
- func (c *Context) Verify() *api.Response
- type HandleFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultApp ¶
func InitDefault ¶
func InitDefault()
func Route ¶
func Route(str string, handler HandleFunc, name string)
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) GetAdminer ¶
func (*Context) GetSession ¶
func (*Context) NewRequest ¶
type HandleFunc ¶
type HandleFunc func(ctx *Context)
Click to show internal directories.
Click to hide internal directories.