rest

package
v0.0.0-...-ee0f3a2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert2StringArray

func Convert2StringArray(err ...error) []string

Types

type Common

type Common struct {
	Code    int    `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

type Exception

type Exception struct {
	Code    int      `json:"code,omitempty"`
	Message string   `json:"message,omitempty"`
	Errors  []string `json:"errors,omitempty"`
}

func BadRequestException

func BadRequestException(message string, err ...error) *Exception

func ForbiddenException

func ForbiddenException(message string, err ...error) *Exception

func InternalServerErrorException

func InternalServerErrorException(message string, err ...error) *Exception

func NotFoundException

func NotFoundException(message string, err ...error) *Exception

func UnauthorizedException

func UnauthorizedException(message string, err ...error) *Exception

Jump to

Keyboard shortcuts

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