infra

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogger added in v0.3.0

func ConfigureLogger()

func HTTPError

func HTTPError(writer http.ResponseWriter, err error)

func MakeHTTPClient

func MakeHTTPClient(proxy string) *http.Client

func WriteCorsHeaders

func WriteCorsHeaders(header http.Header)

Types

type NoopLogger

type NoopLogger struct{}

func (NoopLogger) Errorf

func (n NoopLogger) Errorf(_ string, _ ...any)

func (NoopLogger) Infof

func (n NoopLogger) Infof(_ string, _ ...any)

Jump to

Keyboard shortcuts

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