Categorygithub.com/jsmithdenverdev/pager/pkg/problemdetail
modulepackage
1.1.0
Repository: https://github.com/jsmithdenverdev/pager.git
Documentation: pkg.go.dev

# Functions

New creates a new ProblemDetail with the given type and options.
WithDetail sets the detail of the ProblemDetail.
WithInstance sets the instance of the ProblemDetail.
WithTitle sets the title of the ProblemDetail.
WithValidateLevel sets the validation level of the ProblemDetail.
WriteToAPIGatewayProxyResponse writes the problem detail to the API Gateway response as JSON.

# Constants

Set of errors for ProblemDetail.
Set of errors for ProblemDetail.
Set of errors for ProblemDetail.
Set of errors for ProblemDetail.
Set of errors for ProblemDetail.
Set of errors for ProblemDetail.
Set of errors for ProblemDetail.
LAllRequired is to ensure that all fields are not empty.
LDetailRequired is to ensure that ProblemDetail.Detail is not empty.
LInstanceFormat is to ensure that ProblemDetail.Instance is a valid URI.
LInstanceRequired is to ensure that ProblemDetail.Instance is not empty.
LStandard is the standard validation level based on RFC 7807.
LStatusRequired is to ensure that ProblemDetail.Status is not empty.
LStrict is to ensure that all fields are not empty and all URIs are valid.
LTitleRequired is to ensure that ProblemDetail.Title is not empty.
LTypeFormat is to ensure that ProblemDetail.Type is a valid URI.
LTypeRequired is to ensure that ProblemDetail.Type is not empty.
Untyped is the default value for ProblemDetail.Type.

# Structs

ProblemDetail is a problem detail as defined in RFC 7807.

# Interfaces

ProblemDetailer is contract for ProblemDetail, this interface is to make ProblemDetail extension possible by using struct embedding.

# Type aliases

Error is an error type for ProblemDetail.
Option is the type for customizing the ProblemDetail.