models

package module
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HeaderRequestID = "X-Request-ID"
	HeaderApiVer    = "X-Api-Version"
	HeaderSrvName   = "X-Service-Name"
)

Variables

This section is empty.

Functions

func NewForbiddenErr added in v0.0.3

func NewForbiddenErr(err error) error

func NewInternalError

func NewInternalError(err error) error

func NewInvalidInputError

func NewInvalidInputError(err error) error

func NewNotFoundError

func NewNotFoundError(err error) error

func NewResourceBusyError

func NewResourceBusyError(err error) error

Types

type AsyncapiItem

type AsyncapiItem struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	Version     string `json:"version"`
	Description string `json:"description"`
}

type ForbiddenError added in v0.0.3

type ForbiddenError struct {
	// contains filtered or unexported fields
}

func (*ForbiddenError) Error added in v0.0.3

func (e *ForbiddenError) Error() string

func (*ForbiddenError) Unwrap added in v0.0.3

func (e *ForbiddenError) Unwrap() error

type InternalError

type InternalError struct {
	// contains filtered or unexported fields
}

func (*InternalError) Error

func (e *InternalError) Error() string

func (*InternalError) Unwrap

func (e *InternalError) Unwrap() error

type InvalidInputError

type InvalidInputError struct {
	// contains filtered or unexported fields
}

func (*InvalidInputError) Error

func (e *InvalidInputError) Error() string

func (*InvalidInputError) Unwrap

func (e *InvalidInputError) Unwrap() error

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) Unwrap

func (e *NotFoundError) Unwrap() error

type ResourceBusyError

type ResourceBusyError struct {
	// contains filtered or unexported fields
}

func (*ResourceBusyError) Error

func (e *ResourceBusyError) Error() string

func (*ResourceBusyError) Unwrap

func (e *ResourceBusyError) Unwrap() error

type SwaggerItem

type SwaggerItem struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	Version     string `json:"version"`
	BasePath    string `json:"base_path"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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