common

package
v0.0.0-...-e1e7ebf Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const GetDatabaseError = "Could not get MongoDb session"
View Source
const NotFound = "not found"

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceError

type ServiceError struct {
	Code     int
	Message  interface{}
	Internal error
}

func NewServiceError

func NewServiceError(code int, message ...interface{}) *ServiceError

func NewServiceErrorf

func NewServiceErrorf(code int, format string, args ...interface{}) *ServiceError

func (*ServiceError) Error

func (he *ServiceError) Error() string

Jump to

Keyboard shortcuts

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