client

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *http.Client
	DebugMode  bool
}

func New

func New() *Client

func (*Client) Call

func (c *Client) Call(ctx context.Context, method, url string, body io.Reader, headers map[string]string, response any) error

type Error

type Error struct {
	Message        string
	StatusCode     int
	RawError       error
	RawAPIResponse []byte
}

func (*Error) Error

func (e *Error) Error() string

Error returns error message. To comply client.Error with Go error interface.

func (*Error) Unwrap

func (e *Error) Unwrap() error

Unwrap method that returns its contained error

Jump to

Keyboard shortcuts

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