Documentation
¶
Index ¶
- Variables
- func CreateHandlerFunc(method interface{}) gin.HandlerFunc
- func CreateRouteHandlerFunc(method interface{}) gin.HandlerFunc
- func ExtractGinContextWithCtx(ctx context.Context) (*gin.Context, error)
- func ExtractRequestWithCtx(ctx context.Context) (*http.Request, error)
- func ExtractResponseWithCtx(ctx context.Context) (*http.Response, error)
- type Context
- type Middleware
- func LoggingRequest() Middleware
- func LoggingRequestWithLogger(l *logger.Logger, simply bool) Middleware
- func LoggingResponse() Middleware
- func LoggingResponseWithLogger(l *logger.Logger, simply bool) Middleware
- func LoggingSimplyRequest() Middleware
- func LoggingSimplyResponse() Middleware
- func Recovery() Middleware
- func RecoveryCustom(recover Middleware) Middleware
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestKey = requestKey{} ResponseKey = responseKey{} GinContextKey = ginContextKey{} )
Functions ¶
func CreateHandlerFunc ¶
func CreateHandlerFunc(method interface{}) gin.HandlerFunc
func CreateRouteHandlerFunc ¶
func CreateRouteHandlerFunc(method interface{}) gin.HandlerFunc
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (Context) GetContext ¶
type Middleware ¶
type Middleware = gin.HandlerFunc
func LoggingRequest ¶
func LoggingRequest() Middleware
func LoggingRequestWithLogger ¶
func LoggingRequestWithLogger(l *logger.Logger, simply bool) Middleware
func LoggingResponse ¶
func LoggingResponse() Middleware
func LoggingResponseWithLogger ¶
func LoggingResponseWithLogger(l *logger.Logger, simply bool) Middleware
func LoggingSimplyRequest ¶
func LoggingSimplyRequest() Middleware
func LoggingSimplyResponse ¶
func LoggingSimplyResponse() Middleware
func RecoveryCustom ¶
func RecoveryCustom(recover Middleware) Middleware
Click to show internal directories.
Click to hide internal directories.