client

package
v0.0.0-...-115cca2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(opts Options) (*Client, error)

func (*Client) Query

func (c *Client) Query(method string, path string, data interface{}) ([]byte, error)

type Error

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

func NewError

func NewError(response models.ErrorResponse, statusCode int) Error

func (Error) Code

func (e Error) Code() string

func (Error) Error

func (e Error) Error() string

func (Error) Temporary

func (e Error) Temporary() bool

type Options

type Options struct {
	Domain     *string
	Token      *string
	MaxRetries int
	RetryDelay time.Duration
}

Jump to

Keyboard shortcuts

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