define

package
v0.0.0-...-c4d41a9 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package define ...

Description : define ...

Author : go_developer@163.com<白茶清欢>

Date : 2022-06-25 23:25

Package define ...

Description : define ...

Author : go_developer@163.com<白茶清欢>

Date : 2022-06-25 20:33

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDefaultConfig

func ConvertDefaultConfig(cfg *HttpHandleConfig)

ConvertDefaultConfig 覆盖默认配置

Author : go_developer@163.com<白茶清欢>

Date : 20:41 2022/6/25

Types

type HttpHandleConfig

type HttpHandleConfig struct {
	RecordRequestDataField  string
	RecordResponseDataField string
	RequestIDField          string
	TraceIDField            string
	ResponseCodeField       string
	ResponseMessageField    string
	HandleRequestCostField  string
	ResponseDataField       string
	ResponseTraceIDField    string
	StartRequestTimeField   string
	FinishRequestTimeField  string
	RequestIsSuccessField   string // 请求处理是否成功的标识
}

HttpHandleConfig 请求处理配置

Author : go_developer@163.com<白茶清欢>

Date : 20:41 2022/6/25

func GetHttpHandleConfig

func GetHttpHandleConfig() *HttpHandleConfig

GetHttpHandleConfig 获取http配置

Author : go_developer@163.com<白茶清欢>

Date : 16:55 2024/7/23

type IsBlackIP

type IsBlackIP func(ctx *gin.Context, clientIP string) bool

IsBlackIP 是否是黑名单IP

Author : go_developer@163.com<白茶清欢>

Date : 23:25 2022/6/25

type IsWhiteIP

type IsWhiteIP func(ctx *gin.Context, clientIP string) bool

IsWhiteIP 是否白名单IP

Author : go_developer@163.com<白茶清欢>

Date : 23:27 2022/6/25

Jump to

Keyboard shortcuts

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