Help us shape the future of Go! Take the 2026 Go Developer Survey

nexusclient

package
v1.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrResponseTooLarge = errors.New("Nexus response exceeds configured limit")

Functions

func ReadBoundedBody

func ReadBoundedBody(reader io.Reader, maxBytes int64) ([]byte, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client 只负责 AgentDock 到已配对 NexusDock 的通用 HTTP 传输策略。 领域路径、超时、响应结构和错误语义继续由调用方拥有。

func New

func New(endpoint, token string) Client

func (Client) Do

func (c Client) Do(ctx context.Context, method, path string, body []byte) (*http.Response, error)

func (Client) Endpoint

func (c Client) Endpoint() string

Jump to

Keyboard shortcuts

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