client

package
v0.0.0-...-2a92315 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APIClientUA = version.HttpString("go-api-client")
)

Functions

func New

func New(options ...ClientOption) (c *client, err error)

Types

type Client

type Client interface {
	// contains filtered or unexported methods
}

type ClientOption

type ClientOption func(*client)

func BaseURL

func BaseURL(u *url.URL) ClientOption

func UnixSocket

func UnixSocket(p string) ClientOption

type ProgressCallback

type ProgressCallback func(ProgressMsg)

type ProgressMsg

type ProgressMsg struct {
	Total     *int64  `json:"total,omitempty"`
	Final     *int64  `json:"final,omitempty"`
	Completed *int64  `json:"completed,omitempty"`
	Error     *string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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