infra

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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