Documentation
¶
Index ¶
- Variables
- type Client
- func (c Client) Auth(kind, credential string) Client
- func (c Client) Base(uri string, args ...any) Client
- func (c Client) BasicAuth(username, password string) Client
- func (c Client) Clone() Client
- func (c Client) Delete(path string, args ...any) Client
- func (c Client) Do(ctx context.Context, body io.Reader) (*http.Response, error)
- func (c Client) DoJSON(ctx context.Context, body io.Reader, model, errorModel any) (int, error)
- func (c Client) Get(path string, args ...any) Client
- func (c Client) Head(path string, args ...any) Client
- func (c Client) Header(name, value string) Client
- func (c Client) Options(path string, args ...any) Client
- func (c Client) Post(path string, args ...any) Client
- func (c Client) Put(path string, args ...any) Client
- func (c Client) QueryParam(key, value string) Client
- func (c Client) Request(method, path string, args ...any) Client
- func (c Client) UserAgent(name string) Client
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMisconfig = errors.New("misconfiguration detected") ErrUnsupportedMediaType = errors.New("unsupported media type") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWithHTTPClient ¶
func (Client) QueryParam ¶
Click to show internal directories.
Click to hide internal directories.