domain

package
v0.0.0-...-ac5baa2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainErr

type DomainErr struct {
	Code  string
	Title string
	Data  map[string]interface{}
}

func AsDomainErr

func AsDomainErr(err error) DomainErr

func BadRequestErr

func BadRequestErr(title string, data map[string]interface{}) DomainErr

func InternalErr

func InternalErr(title string, data map[string]interface{}) DomainErr

func NotFoundErr

func NotFoundErr(title string, data map[string]interface{}) DomainErr

func UnauthorizedErr

func UnauthorizedErr(title string, data map[string]interface{}) DomainErr

func (DomainErr) Error

func (e DomainErr) Error() string

Jump to

Keyboard shortcuts

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