gineve

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ConfigLogRequestBody = "log.requestBody"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	HttpRoutes(engine gin.IRouter)
}

type Filter added in v0.0.8

type Filter interface {
	FilterHandler(ctx *gin.Context)
}

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 OptSetLogger(logger xlog.Logger) Opt

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 NewProcessor(opts ...Opt) *Processor

func (*Processor) BeanDestroy

func (p *Processor) BeanDestroy() error

func (*Processor) Classify

func (p *Processor) Classify(o interface{}) (bool, error)

func (*Processor) Init

func (p *Processor) Init(conf fig.Properties, container bean.Container) error

func (*Processor) Process

func (p *Processor) Process() error

Directories

Path Synopsis
midware

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL