client

package
v0.0.0-...-702d5d8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(input interface{}, result interface{}) error

func ToTimeHookFunc

func ToTimeHookFunc() mapstructure.DecodeHookFunc

Types

type Client

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

func NewClient

func NewClient(apiKey string, rls RateLimiterSettings) *Client

func (*Client) DoRequest

func (c *Client) DoRequest(requestStruct request.RequestInterface) ([]response.ResponseInterface, error)

func (*Client) SetApiHost

func (c *Client) SetApiHost(apiHost string)

func (*Client) SetBaseURL

func (c *Client) SetBaseURL(baseURL string)

type RateLimiterSettings

type RateLimiterSettings struct {
	Disabled     bool
	RequestCount int
	Seconds      int
}

Jump to

Keyboard shortcuts

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