util

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBenchmarkEquinoxClient

func NewBenchmarkEquinoxClient(b *testing.B) *equinox.Equinox

Returns a equinox client close to the default one but without caching or rate limiting.

func NewTestCustomInternalClient

func NewTestCustomInternalClient(t *testing.T, config api.EquinoxConfig) *internal.Client

Returns a custom equinox client, without caching or rate limiting.

func NewTestEquinoxConfig

func NewTestEquinoxConfig() api.EquinoxConfig

Creates an EquinoxConfig for tests.

  • Key : "RGAPI-TEST"
  • Retry : api.Retry{}
  • Logger : zerolog.TraceLevel, prettified

func NewTestInternalClient

func NewTestInternalClient(t *testing.T) *internal.Client

Returns a equinox client, without caching or rate limiting, no Retry and a logger with zerolog.TraceLevel and pretty print.

func NewTestLogger

func NewTestLogger() zerolog.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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