Documentation
¶
Index ¶
- func NewLogger(config *api.EquinoxConfig) (*zap.Logger, error)
- type InternalClient
- func (c *InternalClient) Execute(logger *zap.Logger, request *http.Request, target any) error
- func (c *InternalClient) GetDDragonLOLVersions(id string) ([]string, error)
- func (c *InternalClient) GetInternalLogger() *zap.Logger
- func (c *InternalClient) Logger(id string) *zap.Logger
- func (c *InternalClient) Request(base string, method string, route any, path string, body any) (*http.Request, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) 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
Click to show internal directories.
Click to hide internal directories.