Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶ added in v0.14.1
func DefaultConfig(key string) (*api.EquinoxConfig, error)
Returns the default Equinox config with a provided key.
- `Cluster` : api.AmericasCluster
- `LogLevel` : api.NopLevel
- `Timeout` : 15 Seconds
- `Retry` : true
- `Cache` : BigCache with TTL of 4 minutes
- `RateLimit` : Internal
Types ¶
type Equinox ¶
type Equinox struct {
Cache *cache.Cache
DataDragon *data_dragon.DataDragonClient
Riot *riot.RiotClient
LOL *lol.LOLClient
TFT *tft.TFTClient
LOR *lor.LORClient
VAL *val.VALClient
}
func NewClient ¶
Creates a new Equinox client with a default configuration
- `Cluster` : api.AmericasCluster
- `LogLevel` : api.NopLevel
- `Timeout` : 15 Seconds
- `Retry` : true
- `Cache` : BigCache with TTL of 4 minutes
- `RateLimit` : Internal
func NewClientWithConfig ¶ added in v0.3.0
func NewClientWithConfig(config *api.EquinoxConfig) (*Equinox, error)
Creates a new Equinox client using a custom configuration.
If you don't specify a Timeout this will disable the timeout for the http.Client.
Directories
¶
| Path | Synopsis |
|---|---|
|
clients
|
|
|
codegen
module
|
|
|
integration
This package only contains integration tests.
|
This package only contains integration tests. |
Click to show internal directories.
Click to hide internal directories.