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` : api.WARN_LOG_LEVEL
- `HTTPClient` : http.Client with timeout of 15 seconds
- `Retry` : Maximum amount of retries allowed, defaults to 1
- `Cache` : BigCache with TTL of 4 minutes
func NewTestEquinoxConfig ¶ added in v0.18.0
func NewTestEquinoxConfig() *api.EquinoxConfig
Creates an EquinoxConfig for tests.
- `LogLevel` : api.DEBUG_LOG_LEVEL
- `HTTPClient` : http.Client{}
- `Retry` : 0
- `Cache` : &cache.Cache{TTL: 0}
Types ¶
type Equinox ¶
type Equinox struct {
Cache *cache.Cache
DDragon *ddragon.DDragonClient
CDragon *cdragon.CDragonClient
Riot *riot.RiotClient
LOL *lol.LOLClient
TFT *tft.TFTClient
VAL *val.VALClient
LOR *lor.LORClient
}
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 stores like BigCache and Redis.
|
Cache package to provide an interface to interact with stores like BigCache and Redis. |
|
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.