Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrResponseTooLarge = errors.New("Nexus response exceeds configured limit")
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 只负责 AgentDock 到已配对 NexusDock 的通用 HTTP 传输策略。 领域路径、超时、响应结构和错误语义继续由调用方拥有。
func NewWithTransport ¶ added in v1.1.0
func NewWithTransport(endpoint, token string, transport http.RoundTripper) Client
NewWithTransport 只替换这一次调用的传输层。 传 nil 时与 New 相同,仍使用默认 Transport,包括系统环境代理。 资源库的固定拨号通过这里接入,避免改掉其他 Nexus HTTP 调用的行为。
Click to show internal directories.
Click to hide internal directories.