accessLogger

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

type AccessLog struct {
	Method   string // http 请求的方法
	URL      string // 整个请求的 url
	Duration string
	ReqBody  string
	RespBody string
	Status   int
}

type MiddlewareBuilder

type MiddlewareBuilder struct {
	// contains filtered or unexported fields
}

func NewmiddlewareBuilder

func NewmiddlewareBuilder(fn func(ctx context.Context, al *AccessLog)) *MiddlewareBuilder

func (*MiddlewareBuilder) AllowReqBody

func (b *MiddlewareBuilder) AllowReqBody(ok bool) *MiddlewareBuilder

func (*MiddlewareBuilder) AllowRespBody

func (b *MiddlewareBuilder) AllowRespBody() *MiddlewareBuilder

func (*MiddlewareBuilder) Build

func (b *MiddlewareBuilder) Build() gin.HandlerFunc

Jump to

Keyboard shortcuts

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