internal

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger added in v0.2.0

func NewLogger(config *api.EquinoxConfig) (*zap.Logger, error)

Creates a new zap.Logger from the configuration parameters provided.

Types

type InternalClient

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

func NewInternalClient added in v0.2.0

func NewInternalClient(config *api.EquinoxConfig) (*InternalClient, error)

Returns a new InternalClient using the configuration provided.

func (*InternalClient) Execute added in v0.17.0

func (c *InternalClient) Execute(logger *zap.Logger, request *http.Request, target any) error

Performs a request to the Riot API.

func (*InternalClient) GetDDragonLOLVersions added in v0.17.0

func (c *InternalClient) GetDDragonLOLVersions(id string) ([]string, error)

func (*InternalClient) GetInternalLogger added in v0.17.0

func (c *InternalClient) GetInternalLogger() *zap.Logger

func (*InternalClient) Logger added in v0.7.0

func (c *InternalClient) Logger(id string) *zap.Logger

Used to access the internal logger, this is used to log events from other clients (RiotClient, LOLClient...).

func (*InternalClient) Request added in v0.17.0

func (c *InternalClient) Request(base string, method string, route any, path string, body any) (*http.Request, error)

Creates a request to the provided route and URL. TODO: Check rate limit here, return error if is rate limited, maybe also return error if it WILL BE rate limited

Jump to

Keyboard shortcuts

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