rgrequest

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientPool sync.Pool

Functions

func GetPostJson

func GetPostJson(c *gin.Context) (data string)

func GetUniqId

func GetUniqId(c *gin.Context) string

* @Content : 获取uniqid * @Param : * @Return : * @Author : LiJunDong * @Time : 2022-03-29

Types

type Client

type Client struct {
	Param    interface{}
	Log      *rglog.Client
	UniqId   string
	Response *rgresponse.Client

	Jaeger *rgjaeger.Client
	Mysql  *rgmysql.Factory
	Ctx    *gin.Context
	// contains filtered or unexported fields
}

func Get

func Get(c *gin.Context) *Client

* @Content : 获取单次请求对象 * @Param : * @Return : * @Author : LiJunDong * @Time : 2022-03-11

func (*Client) Copy added in v1.0.17

func (c *Client) Copy() (newC *Client)

func (*Client) Proxy added in v1.0.15

func (c *Client) Proxy(scheme, host, path string) (err error)

Proxy <LiJunDong : 2023-01-12 15:14:07> --- 请求代理转发

Jump to

Keyboard shortcuts

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