errors

package
v0.0.0-...-fb12112 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatabaseError = "database error"
)

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"`
}

func NewBadRequestError

func NewBadRequestError(message string) *RestErr

func NewInternalServerError

func NewInternalServerError(message string) *RestErr

func NewNotFoundError

func NewNotFoundError(message string) *RestErr

Jump to

Keyboard shortcuts

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