Documentation
¶
Index ¶
- Variables
- func GetURLWithAuthorizationHash(req api.EquinoxRequest) (string, error)
- func NewLogger(config api.EquinoxConfig) 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) ExecuteRaw(ctx context.Context, equinoxReq api.EquinoxRequest) ([]byte, error)
- func (c *Client) GetDDragonLOLVersions(ctx context.Context, id string) ([]string, error)
- func (c *Client) Logger(id string) zerolog.Logger
- func (c *Client) Request(ctx context.Context, logger zerolog.Logger, httpMethod string, ...) (api.EquinoxRequest, error)
- type Loggers
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetURLWithAuthorizationHash ¶ added in v0.19.6
func GetURLWithAuthorizationHash(req api.EquinoxRequest) (string, error)
Generates an URL with the Authorization header if it exists. Don't want to store the Authorization header as key in plaintext.
Types ¶
type Client ¶ added in v0.19.0
type Client struct { IsCacheEnabled bool IsRateLimitEnabled bool IsRetryEnabled bool // contains filtered or unexported fields }
func NewInternalClient ¶ added in v0.2.0
func NewInternalClient(config api.EquinoxConfig) *Client
func (*Client) Do ¶ added in v1.0.0
Do sends the request n times from c.maxRetries and returns the response
The loop will always run at least once
func (*Client) ExecuteRaw ¶ added in v0.19.6
ExecuteRaw executes a request without Get/Set from cache and returns []byte
func (*Client) GetDDragonLOLVersions ¶ added in v0.19.0
Click to show internal directories.
Click to hide internal directories.