Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRateLimit ¶ added in v0.1.1
SetRateLimit configures the global per-route SDK request limiter. Passing enabled=false disables limiter waits while preserving GET merging.
func SetRateLimitEnabled ¶ added in v0.1.1
func SetRateLimitEnabled(enabled bool)
SetRateLimitEnabled toggles the global per-route SDK request limiter.
Types ¶
type HTTPMethod ¶
type HTTPMethod string
const ( GET HTTPMethod = "GET" POST HTTPMethod = "POST" PUT HTTPMethod = "PUT" DELETE HTTPMethod = "DELETE" )
type PendingRequest ¶ added in v0.0.9
type PendingRequest struct {
Response any // 用于缓存成功响应的结果
// contains filtered or unexported fields
}
PendingRequest 用于保存正在进行的请求和等待结果的调用方