Documentation
¶
Index ¶
- func ConfigureLogger()
- func HTTPError(writer http.ResponseWriter, err error)
- func MakeHTTPClient(proxy string) *http.Client
- func NewHTTPServerErrorLogger(logger *clog.Logger) *log.Logger
- func WriteCorsHeaders(header http.Header, origin string)
- func WriteCorsHeadersForOptions(respHeader http.Header, reqHeader http.Header)
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 NewHTTPServerErrorLogger ¶ added in v0.6.0
NewHTTPServerErrorLogger creates a standard Go logger that outputs to charmbracelet log with ERROR level.
func WriteCorsHeaders ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.