http

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

DefaultProblemMatchers is a list of default ProblemMatchers. nolint: gochecknoglobals

Functions

func NewServiceProblemMatcher

func NewServiceProblemMatcher() appkithttp.ProblemMatcher

NewServiceProblemMatcher returns a problem matcher for service errors. If the returned error matches the following interface, a special service problem is returned by NewProblem:

type ServiceError interface {
	ServiceError() bool
}

func NewValidationWithViolationsProblemMatcher

func NewValidationWithViolationsProblemMatcher() appkithttp.ProblemMatcher

NewValidationWithViolationsProblemMatcher returns a problem matcher for validation errors that contain violations. If the returned error matches the following interface, a special validation problem is returned by NewProblem:

type violationError interface {
	Violations() map[string][]string
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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