api

package
v0.0.0-...-e75800c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessForbiddenError

func AccessForbiddenError(err error) error

func ConflictError

func ConflictError(err error) error

func GoneError

func GoneError(err error) error

func NewBadRequestError

func NewBadRequestError(err error) error

func NewInternalServerError

func NewInternalServerError(err error) error

func NotFoundError

func NotFoundError(err error) error

Types

type ApiError

type ApiError struct {
	Code        int
	Type        string
	Description string
	Reason      string
}

func (*ApiError) Error

func (e *ApiError) Error() string

type ApiResponse

type ApiResponse struct {
	Code        int
	Type        string
	Description string
	Message     string
}

func NewOk

func NewOk(message string) ApiResponse

Jump to

Keyboard shortcuts

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