validator

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilHandler = errors.New("response handler cannot be nil")
)

Functions

This section is empty.

Types

type DefaultHandler

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

DefaultHandler struct

func NewDefaultHandler

func NewDefaultHandler(
	jsonEncoder gonethttpjson.Encoder,
) (*DefaultHandler, error)

NewDefaultHandler function

func (*DefaultHandler) HandlerError

func (d *DefaultHandler) HandlerError(
	w http.ResponseWriter,
	err error,
)

HandlerError handles the error

type Handler

type Handler interface {
	HandleError(
		w http.ResponseWriter,
		err error,
	)
}

Handler interface

Jump to

Keyboard shortcuts

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