Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiddlewareBuilder ¶
type MiddlewareBuilder struct {
// contains filtered or unexported fields
}
func NewMiddlewareBuilder ¶
func NewMiddlewareBuilder(l logger.Logger) *MiddlewareBuilder
func (*MiddlewareBuilder) AllowWriteStack ¶
func (b *MiddlewareBuilder) AllowWriteStack() *MiddlewareBuilder
func (*MiddlewareBuilder) Build ¶
func (b *MiddlewareBuilder) Build() gin.HandlerFunc
Build 用于替换gin框架的Recovery中间件,因为传入参数,再包一层
func (*MiddlewareBuilder) IsAbort ¶
func (b *MiddlewareBuilder) IsAbort() *MiddlewareBuilder
Click to show internal directories.
Click to hide internal directories.