handelerror

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandleError

type HandleError struct {
	// contains filtered or unexported fields
}

func NewHandleError

func NewHandleError(logger *slog.Logger) *HandleError

func (*HandleError) Error

func (h *HandleError) Error(ctx context.Context, w http.ResponseWriter, msg string, code model.APIStatus, httpcode int, level slog.Level)

func (*HandleError) Service

func (h *HandleError) Service(ctx context.Context, w http.ResponseWriter, err error)

Jump to

Keyboard shortcuts

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