filter

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

*

  • @Time : 2020/12/17 6:43 下午
  • @Author : MassAdobe
  • @Description: filter

*

*

  • @Time : 2021/1/6 11:26 上午
  • @Author : MassAdobe
  • @Description: filter

*

*

  • @Time : 2020/12/18 3:24 下午
  • @Author : MassAdobe
  • @Description: filter

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetReqUser

func GetReqUser() gin.HandlerFunc

*

  • @Author: MassAdobe
  • @TIME: 2020-04-27 21:49
  • @Description: 获取头信息中用户基本信息

*

func GetRequestUser

func GetRequestUser(c *gin.Context) *pojo.RequestUser

*

  • @Author: MassAdobe
  • @TIME: 2020-04-28 10:21
  • @Description: 获取用户基本信息

*

func SetTraceAndStep

func SetTraceAndStep() gin.HandlerFunc

*

  • @Author: MassAdobe
  • @TIME: 2020-04-27 21:49
  • @Description: 放入请求跟踪ID和步骤ID

*

func Timeout added in v1.3.0

func Timeout(t time.Duration) gin.HandlerFunc

*

  • @Author: MassAdobe
  • @TIME: 2021/1/6 3:16 下午
  • @Description: 配合gin框架的超时处理

*

Types

type TimeoutWriter added in v1.3.0

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

*

  • @Author: MassAdobe
  • @TIME: 2021/1/6 3:15 下午
  • @Description: 自定义返回结构体

*

func (*TimeoutWriter) Header added in v1.3.0

func (tw *TimeoutWriter) Header() http.Header

*

  • @Author: MassAdobe
  • @TIME: 2021/1/6 3:16 下午
  • @Description: 继承重写方法

*

func (*TimeoutWriter) Write added in v1.3.0

func (tw *TimeoutWriter) Write(b []byte) (int, error)

*

  • @Author: MassAdobe
  • @TIME: 2021/1/6 3:15 下午
  • @Description: 修改主返回体

*

func (*TimeoutWriter) WriteHeader added in v1.3.0

func (tw *TimeoutWriter) WriteHeader(code int)

*

  • @Author: MassAdobe
  • @TIME: 2021/1/6 3:15 下午
  • @Description: 修改返回体头信息

*

func (*TimeoutWriter) WriteHeaderNow added in v1.3.0

func (tw *TimeoutWriter) WriteHeaderNow()

*

  • @Author: MassAdobe
  • @TIME: 2021/1/6 3:16 下午
  • @Description: 继承重写方法

*

Jump to

Keyboard shortcuts

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