Documentation
¶
Index ¶
- func NewLogger(config *api.EquinoxConfig) (*zap.Logger, error)
- func NewTestEquinoxConfig() *api.EquinoxConfig
- type InternalClient
- func (c *InternalClient) Execute(request *http.Request, target any) error
- func (c *InternalClient) GetDDragonLOLVersions(client string, endpoint string, method string) ([]string, error)
- func (c *InternalClient) GetInternalLogger() *zap.Logger
- func (c *InternalClient) Logger(client string, endpoint string, method string) *zap.Logger
- func (c *InternalClient) Request(base string, method string, route any, url string, body any) (*http.Request, error)
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.
func NewTestEquinoxConfig ¶ added in v0.5.0
func NewTestEquinoxConfig() *api.EquinoxConfig
Creates an EquinoxConfig for tests.
Types ¶
type InternalClient ¶
type InternalClient struct {
IsCacheEnabled bool
IsRetryEnabled bool
// 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(request *http.Request, target any) error
Performs a GET request to the Riot API.
func (*InternalClient) GetDDragonLOLVersions ¶ added in v0.17.0
func (*InternalClient) GetInternalLogger ¶ added in v0.17.0
func (c *InternalClient) GetInternalLogger() *zap.Logger
Click to show internal directories.
Click to hide internal directories.