classifier

package
v0.0.0-...-5a001f1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidationErrTag = "validation"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Classifier

type Classifier interface {
	// Classify classifies the passed in struct based on arbitrary, implementation specific criteria
	Classify(in interface{}) (interface{}, error)
}

Classifier represents a contract to classify passed in structs

func NewErrorClassifier

func NewErrorClassifier() Classifier

NewErrorClassifier returns a reference to a classifier instance

Jump to

Keyboard shortcuts

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