package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: May 8, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GinProxy gin request proxy and get rsp
GinPureProxy gin request proxy
Limiter gin middleware limiter
if rl is nil, default Bucket = 1000, Rate = 1000
Recovery gin middleware recovery
type HttpRsp[V any] struct {
Code int `json:"code"`
Message string `json:"message"`
Data V `json:"data,omitempty"`
}
type RecoveryInfo struct {
Time string `json:"time"`
RequestURI string `json:"request_uri"`
Body string `json:"body"`
RequestInfo string `json:"request_info"`
Err any `json:"error"`
Stack string `json:"stack"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.