Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppInfoHeaders ¶
func AppInfoHeaders() gin.HandlerFunc
Types ¶
type AppHandler ¶
type AppHandler func(app *Application)
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(opts *Options) *Application
func (*Application) Run ¶
func (app *Application) Run()
type ErrorHandler ¶
type GroupRouter ¶
type GroupRouter struct {
// contains filtered or unexported fields
}
func (*GroupRouter) Get ¶
func (g *GroupRouter) Get(path string, action Action)
func (*GroupRouter) Group ¶
func (g *GroupRouter) Group(path string, handlers ...gin.HandlerFunc) *GroupRouter
func (*GroupRouter) Handle ¶
func (g *GroupRouter) Handle(method, path string, action Action)
func (*GroupRouter) Post ¶
func (g *GroupRouter) Post(path string, action Action)
type Options ¶
type Options struct { Timeout time.Duration ConfigPaths []string AppBeforeInit AppHandler AppAfterInit AppHandler Starters []abs.IStarter ErrorHook ErrorHandler Middlewares []gin.HandlerFunc RouteHook RouteHandler }
type Response ¶
type ResponseWriter ¶
type ResponseWriter struct { gin.ResponseWriter // contains filtered or unexported fields }
type RouteHandler ¶
type RouteHandler func(group *GroupRouter)
Click to show internal directories.
Click to hide internal directories.