infra

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 8 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, error)

func PanicInterceptor

func PanicInterceptor(_ func(any))

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