util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestEquinoxConfig

func NewTestEquinoxConfig() api.EquinoxConfig

Creates an EquinoxConfig for tests.

  • `Logger` : zerolog.TraceLevel prettified
  • `HTTPClient` : http.Client{}
  • `Retry` : api.Retry{}
  • `Cache` : &cache.Cache{}
  • `RateLimit` : &ratelimit.RateLimit{Enabled: false}

func ReadFile

func ReadFile(b *testing.B, filename string) []byte

Reads a json file and returns its content as []byte.

func TestLogger added in v1.0.0

func TestLogger() api.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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