internal

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger added in v0.2.0

func NewLogger(retry bool, timeout int, ttl int, logLevel api.LogLevel) *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 Cache added in v0.9.0

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache added in v0.9.0

func NewCache() *Cache

func (*Cache) Get added in v0.9.0

func (c *Cache) Get(url string) (*http.Response, error)

func (*Cache) Set added in v0.9.0

func (c *Cache) Set(url string, res *http.Response) error

type CacheItem added in v0.9.0

type CacheItem struct {
	// contains filtered or unexported fields
}

type InternalClient

type InternalClient struct {
	Cluster api.Cluster
	// contains filtered or unexported fields
}

func NewInternalClient added in v0.2.0

func NewInternalClient(config *api.EquinoxConfig) *InternalClient

Returns a new InternalClient using configuration object provided.

func (*InternalClient) Get added in v0.9.0

func (c *InternalClient) Get(route interface{}, endpoint string, object interface{}, 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...)

func (*InternalClient) Post added in v0.9.0

func (c *InternalClient) Post(route interface{}, endpoint string, requestBody io.Reader, object interface{}, authorizationHeader string) error

Performs a POST request, authorizationHeader can be blank

func (*InternalClient) Put added in v0.9.0

func (c *InternalClient) Put(route interface{}, endpoint string, requestBody io.Reader) error

Performs a PUT request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL