Documentation ¶
Index ¶
- func NewLogger(config *api.EquinoxConfig) *zap.SugaredLogger
- func NewTestEquinoxConfig() *api.EquinoxConfig
- type Cache
- type InternalClient
- func (c *InternalClient) ClearInternalClientCache() error
- func (c *InternalClient) Get(route interface{}, endpoint string, object interface{}, endpointName string, ...) error
- func (c *InternalClient) Logger(client string, endpoint string, method string) *zap.SugaredLogger
- func (c *InternalClient) Post(route interface{}, endpoint string, requestBody interface{}, ...) error
- func (c *InternalClient) Put(route interface{}, endpoint string, requestBody interface{}, ...) error
- type Methods
- type Rate
- type RateLimit
- type RateTiming
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶ added in v0.2.0
func NewLogger(config *api.EquinoxConfig) *zap.SugaredLogger
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 ¶
func NewInternalClient ¶ added in v0.2.0
func NewInternalClient(config *api.EquinoxConfig) (*InternalClient, error)
Returns a new InternalClient using configuration object provided.
func (*InternalClient) ClearInternalClientCache ¶ added in v0.10.0
func (c *InternalClient) ClearInternalClientCache() error
func (*InternalClient) Get ¶ added in v0.9.0
func (c *InternalClient) Get(route interface{}, endpoint string, object interface{}, endpointName string, method string, authorizationHeader string) error
Performs a GET request, authorizationHeader can be blank
func (*InternalClient) Logger ¶ added in v0.7.0
func (c *InternalClient) Logger(client string, endpoint string, method string) *zap.SugaredLogger
Used to access the logger from the InternalClient, this is used to log events from other clients (RiotClient, LOLClient...)
type Rate ¶ added in v0.10.0
type Rate struct { Seconds *RateTiming Minutes *RateTiming }
type RateLimit ¶ added in v0.10.0
type RateLimit struct {
// contains filtered or unexported fields
}
func NewRateLimit ¶ added in v0.10.0
func NewRateLimit() *RateLimit
func (*RateLimit) IsRateLimited ¶ added in v0.10.0
Checks if the *Rate is currently rate limited
func (*RateLimit) SetAppRate ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.