Documentation ¶
Index ¶
- Variables
- func NewLogger(config api.EquinoxConfig, cache *cache.Cache, ratelimit *ratelimit.RateLimit) zerolog.Logger
- type Client
- func (c *Client) Do(ctx context.Context, equinoxReq api.EquinoxRequest) (*http.Response, error)
- func (c *Client) Execute(ctx context.Context, equinoxReq api.EquinoxRequest, target any) error
- func (c *Client) ExecuteBytes(ctx context.Context, equinoxReq api.EquinoxRequest) ([]byte, error)
- func (c *Client) Logger(id string) zerolog.Logger
- func (c *Client) Request(ctx context.Context, logger zerolog.Logger, httpMethod string, ...) (api.EquinoxRequest, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Client ¶
type Client struct { IsCacheEnabled bool IsRateLimitEnabled bool IsRetryEnabled bool // contains filtered or unexported fields }
func NewInternalClient ¶
func (*Client) Execute ¶
Executes a 'EquinoxRequest', checks cache and unmarshals the response into 'target'.
ctx accepts 'api.ExecuteOptions', 'api.Revalidate' for example can be used to revalidate the cache, forcing an update to it.
func (*Client) ExecuteBytes ¶
Executes a 'EquinoxRequest', skips checking cache and returns []byte.
Click to show internal directories.
Click to hide internal directories.