Documentation ¶
Index ¶
- Variables
- func App() *server.Server
- func AppHTTPErrorHandler(err error, ctx Context)
- func BaseHTTPErrorHandler(h HTTPErrorHandler) server.HTTPErrorHandler
- func BaseHTTPOKHandler(h HTTPOKHandler) server.HTTPOKHandler
- func BaseHandlerFunc(h HandlerFunc) server.HandlerFunc
- func ExtendContextMiddleware(h server.HandlerFunc) server.HandlerFunc
- func HandleSucc() server.HandlerFunc
- func InitLogger()
- type Context
- type HTTPErrorHandler
- type HTTPOKHandler
- type HandlerFunc
- type Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "0.0.0" BuildID string 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 BaseHTTPOKHandler ¶ added in v0.5.1
func BaseHTTPOKHandler(h HTTPOKHandler) server.HTTPOKHandler
BaseHTTPOKHandler 返回失败
func BaseHandlerFunc ¶ added in v0.4.3
func BaseHandlerFunc(h HandlerFunc) server.HandlerFunc
BaseHandlerFunc HandlerFunc 转为 server.HandlerFunc
func ExtendContextMiddleware ¶
func ExtendContextMiddleware(h server.HandlerFunc) server.HandlerFunc
ExtendContextMiddleware Context 拓展中间件
func InitLogger ¶
func InitLogger()
Types ¶
type HTTPErrorHandler ¶
type HTTPOKHandler ¶ added in v0.5.1
type HandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.