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.
- `LogLevel` : zerolog.WarnLevel
- `HTTPClient` : http.Client with timeout of 15 seconds
- `Retries` : Retry 3 times
- `Cache` : BigCache with TTL of 4 minutes
Types ¶
type Equinox ¶
type Equinox struct {
Cache *cache.Cache
DDragon *ddragon.Client
CDragon *cdragon.Client
Riot *riot.Client
LOL *lol.Client
TFT *tft.Client
VAL *val.Client
LOR *lor.Client
}
func NewClientWithConfig ¶ added in v0.3.0
func NewClientWithConfig(config *api.EquinoxConfig) (*Equinox, error)
Creates a new Equinox client using a custom configuration.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package used to share common constants and structs.
|
Package used to share common constants and structs. |
|
Cache package to provide an interface to interact with cache stores.
|
Cache package to provide an interface to interact with cache stores. |
|
clients
|
|
|
cdragon
This package is used to interact with Community Dragon endpoints.
|
This package is used to interact with Community Dragon endpoints. |
|
ddragon
This package is used to interact with Data Dragon endpoints.
|
This package is used to interact with Data Dragon endpoints. |
|
lol
This package is used to interact with all League of Legends endpoints.
|
This package is used to interact with all League of Legends endpoints. |
|
lor
This package is used to interact with all Legends of Runeterra endpoints.
|
This package is used to interact with all Legends of Runeterra endpoints. |
|
riot
This package is used to interact with all Riot Games endpoints.
|
This package is used to interact with all Riot Games endpoints. |
|
tft
This package is used to interact with all Teamfight Tactics endpoints.
|
This package is used to interact with all Teamfight Tactics endpoints. |
|
val
This package is used to interact with all VALORANT endpoints.
|
This package is used to interact with all VALORANT endpoints. |
|
codegen
module
|
|
|
test
|
|
|
integration
This package only contains integration tests and are meant to be run manually.
|
This package only contains integration tests and are meant to be run manually. |
Click to show internal directories.
Click to hide internal directories.