transport

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultListOffset int = 0
	DefaultListLimit  int = 100
)

Default значения в запросах

Variables

This section is empty.

Functions

func IsBadRequest

func IsBadRequest(err error) bool

func IsConflict

func IsConflict(err error) bool

func IsForbidden

func IsForbidden(err error) bool

func IsGone

func IsGone(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsUnauthorized

func IsUnauthorized(err error) bool

Types

type ErrorDTO

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

} //@name ErrorDTO

ErrorDTO model info @Description Error dto

func NewErrorDTO

func NewErrorDTO(status int, message string) *ErrorDTO

func NewErrorDTOFromError

func NewErrorDTOFromError(code int, err error) *ErrorDTO

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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