errorwriter

package
v0.0.0-...-bcd8c7d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorWriter

type ErrorWriter interface {
	WriteError(
		rw http.ResponseWriter,
		code int,
		message string,
		logger logger.Logger,
	)
}

func NewHTMLErrorWriterFromFile

func NewHTMLErrorWriterFromFile(path string) (ErrorWriter, error)

func NewPlaintextErrorWriter

func NewPlaintextErrorWriter() ErrorWriter

Jump to

Keyboard shortcuts

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