支持设置日志实例
This commit is contained in:
@ -7,7 +7,10 @@
|
||||
// Date : 2024-05-24 17:09
|
||||
package define
|
||||
|
||||
import "context"
|
||||
import (
|
||||
"context"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// Request 请求配置
|
||||
//
|
||||
@ -33,6 +36,7 @@ type Request struct {
|
||||
ConnectTimeout int64 `json:"connect_timeout"` // 连接超时时间: ms
|
||||
ReadTimeout int64 `json:"read_timeout"` // 读取超时时间
|
||||
RetryRule *RequestRetryRule `json:"retry_rule"` // 重试规则
|
||||
Logger *zap.Logger `json:"-"` // 日志记录器
|
||||
}
|
||||
|
||||
// RequestRetryRule 重试规则
|
||||
|
Reference in New Issue
Block a user