midware

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REQEUST_ID = "_REQEUST_ID"
)

Variables

This section is empty.

Functions

func LogHttp

func LogHttp() gin.HandlerFunc

func Recovery

func Recovery() gin.HandlerFunc

Types

type RequestBodyLogWriter

type RequestBodyLogWriter struct {
	V binding.StructValidator
}

func (*RequestBodyLogWriter) Engine

func (v *RequestBodyLogWriter) Engine() interface{}

func (*RequestBodyLogWriter) ValidateStruct

func (v *RequestBodyLogWriter) ValidateStruct(obj interface{}) error

type ResponseBodyLogWriter

type ResponseBodyLogWriter struct {
	gin.ResponseWriter
	// contains filtered or unexported fields
}

func (*ResponseBodyLogWriter) Write

func (w *ResponseBodyLogWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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