Documentation ¶
Index ¶
Constants ¶
View Source
const (
ConfigLogRequestBody = "log.requestBody"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(p *Processor)
func OptAddFilters ¶ added in v0.0.7
func OptAddFilters(filters ...gin.HandlerFunc) Opt
func OptSetDefaultHttpLogger ¶ added in v0.0.5
func OptSetDefaultHttpLogger(logger loghttp.HttpLogger, all bool) Opt
配置默认的HttpLogger 如果all为true,则将为所有的接口添加该logger; 如果all为false,则用户需要使用inject Logger的方式,手工添加接口日志。
func OptSetLogger ¶
func OptSetPanicHandler ¶ added in v0.0.5
func OptSetPanicHandler(h recovery.PanicHandler) Opt
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func NewProcessor ¶
func (*Processor) BeanDestroy ¶
Click to show internal directories.
Click to hide internal directories.