Documentation
¶
Index ¶
- Variables
- func App() *server.Server
- func AppHTTPErrorHandler(err error, ctx Context)
- func BaseHTTPErrorHandler(h HTTPErrorHandler) server.HTTPErrorHandler
- func BaseHandlerFunc(h HandlerFunc) server.HandlerFunc
- func Controller(h interface{}, methodName ...string) server.HandlerFunc
- func ExtendContextMiddleware(h server.HandlerFunc) server.HandlerFunc
- func HandleSucc() server.HandlerFunc
- func InitLogger()
- type Context
- type HTTPErrorHandler
- type HandlerFunc
- type Logger
- type Request
- type Route
- type RouteCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccessLog logger.Writer ConsoleLog logger.Writer AppLog logger.Writer ErrorLog logger.Writer )
View Source
var Hostname string
Functions ¶
func AppHTTPErrorHandler ¶ added in v0.4.3
func BaseHTTPErrorHandler ¶ added in v0.4.3
func BaseHTTPErrorHandler(h HTTPErrorHandler) server.HTTPErrorHandler
BaseHTTPErrorHandler 返回失败
func BaseHandlerFunc ¶ added in v0.4.3
func BaseHandlerFunc(h HandlerFunc) server.HandlerFunc
BaseHandlerFunc HandlerFunc 转为 server.HandlerFunc
func Controller ¶
func Controller(h interface{}, methodName ...string) server.HandlerFunc
Controller 转为 server.HandlerFunc
func ExtendContextMiddleware ¶
func ExtendContextMiddleware(h server.HandlerFunc) server.HandlerFunc
ExtendContextMiddleware Context 拓展中间件
func InitLogger ¶
func InitLogger()
Types ¶
type HTTPErrorHandler ¶
type HandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.