errconst

package
v0.0.0-...-3ddb297 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RPCEmptyReqCode = 1
	RPCDBErrorCode  = 2
	RPCSuccessCode  = 9
)

Variables

View Source
var (
	RPCEmptyRequestErr = errors.New("Empty RPC Request")
)

Functions

This section is empty.

Types

type ServiceError

type ServiceError struct {
	Srv  string `json:"service"`
	Err  error  `json:"error"`
	Code int32  `json:"code"`
	Msg  string `json:"message"`
}

func (ServiceError) Error

func (e ServiceError) Error() string

Jump to

Keyboard shortcuts

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