Documentation
¶
Index ¶
- func NewLogger(config *api.EquinoxConfig) (*zap.Logger, error)
- func NewTestEquinoxConfig() *api.EquinoxConfig
- type InternalClient
- func (c *InternalClient) DataDragonGet(endpointPath string, target interface{}, endpointName string, ...) error
- func (c *InternalClient) Get(route interface{}, endpointPath string, target interface{}, ...) error
- func (c *InternalClient) Logger(client string, endpoint string, method string) *zap.Logger
- func (c *InternalClient) Post(route interface{}, endpointPath string, requestBody interface{}, ...) error
- func (c *InternalClient) Put(route interface{}, endpointPath string, requestBody interface{}, ...) 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 {
Cluster api.Cluster
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) DataDragonGet ¶ added in v0.13.2
func (c *InternalClient) DataDragonGet(endpointPath string, target interface{}, endpointName string, methodName string) error
Performs a GET request to the Data Dragon API.
func (*InternalClient) Get ¶ added in v0.9.0
func (c *InternalClient) Get(route interface{}, endpointPath string, target interface{}, endpointName string, methodName string, authorizationHeader string) error
Performs a GET request to the Riot API.
func (*InternalClient) Logger ¶ added in v0.7.0
Used to access the internal logger, this is used to log events from other clients (RiotClient, LOLClient...).
Click to show internal directories.
Click to hide internal directories.