service

package
v0.0.0-...-76f5359 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultErrorCode

func GetDefaultErrorCode(statusCode int) string

Types

type BadRequestError

type BadRequestError ServiceError

func (BadRequestError) Error

func (f BadRequestError) Error() string

type ForbiddenError

type ForbiddenError ServiceError

func (ForbiddenError) Error

func (f ForbiddenError) Error() string

type InternalServerError

type InternalServerError ServiceError

func (InternalServerError) Error

func (f InternalServerError) Error() string

type NotFoundError

type NotFoundError ServiceError

func (NotFoundError) Error

func (f NotFoundError) Error() string

type ServiceError

type ServiceError struct {
	Code    string
	Message string
}

func (ServiceError) Error

func (f ServiceError) Error() string

type Unauthorized

type Unauthorized ServiceError

func (Unauthorized) Error

func (f Unauthorized) Error() string

type ValidationError

type ValidationError []validation.ValidationError

func NewValidationError

func NewValidationError(err error) ValidationError

func (ValidationError) Error

func (m ValidationError) Error() string

Jump to

Keyboard shortcuts

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