errors

package
v0.0.0-...-808b117 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestErr

type RestErr struct {
	Message string `json:"message"`
	Status  int    `json:"status"`
	Error   string `json:"error"`
}

RestErr ...

func NewBadRequestError

func NewBadRequestError(message string) *RestErr

NewBadRequestError ...

func NewInternalServerError

func NewInternalServerError(message string) *RestErr

NewInternalServerError ..

func NewNotFoundError

func NewNotFoundError(message string) *RestErr

NewNotFoundError ...

Jump to

Keyboard shortcuts

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