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
- `Timeout` : 15 Seconds
- `Retry` : true
- `Cache` : BigCache with TTL of 4 minutes
Types ¶
type Equinox ¶
type Equinox struct {
Cache *cache.Cache
Logger *zap.Logger
DDragon *ddragon.DDragonClient
CDragon *cdragon.CDragonClient
Riot *riot.RiotClient
LOL *lol.LOLClient
TFT *tft.TFTClient
VAL *val.VALClient
LOR *lor.LORClient
}
func NewClient ¶
Creates a new Equinox client with a default configuration
- `LogLevel` : api.WARN_LOG_LEVEL
- `Timeout` : 15 Seconds
- `Retry` : true
- `Cache` : BigCache with TTL of 4 minutes
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 |
|---|---|
|
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 CDragon endpoints.
|
This package is used to interact with CDragon endpoints. |
|
ddragon
This package is used to interact with DDragon endpoints.
|
This package is used to interact with DDragon endpoints. |
|
lol
This package is used to interact with the following LOL endpoints:
|
This package is used to interact with the following LOL endpoints: |
|
lor
This package is used to interact with the following LOR endpoints:
|
This package is used to interact with the following LOR endpoints: |
|
riot
This package is used to interact with the following Riot endpoints:
|
This package is used to interact with the following Riot endpoints: |
|
tft
This package is used to interact with the following TFT endpoints:
|
This package is used to interact with the following TFT endpoints: |
|
val
This package is used to interact with the following VAL endpoints:
|
This package is used to interact with the following VAL 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.