pkg

package
v3.2.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0, MIT Imports: 2 Imported by: 12

Documentation

Index

Constants

View Source
const (
	ERRCODE_INTERNAL_ERROR = 550 + iota
	ERRCODE_NAME_OR_PASSWORD
	ERRCODE_SYSBUSY
	ERRCODE_PARAM_ERROR
	ERRCODE_INVALID_CFG
	ERRCODE_TIMEOUT
	ERRCODE_SERVICE_UNAVAILABLE
	ERRCODE_ZONE_NOT_EXISTS
	ERRCODE_LOCAL_ZONE_OPS_FAILED
	ERRCODE_DUP_ZONE
	ERRCODE_DUP_DB
	ERRCODE_INVALID_ENGINE
	ERRCODE_DB_NOTEXISTS
	ERRCODE_DB_Not_Empty
	ERRCODE_DUP_SPACE
	ERRCODE_SPACE_NOTEXISTS
	ERRCODE_PARTITION_HAS_TASK_NOW
	ERRCODE_REPLICA_NOT_EXISTS
	ERRCODE_DUP_REPLICA
	ERRCODE_PARTITION_REPLICA_LEADER_NOT_DELETE
	ERRCODE_PS_NOTEXISTS
	ERRCODE_PS_Already_Exists
	ERRCODE_LOCAL_SPACE_OPS_FAILED
	ERRCODE_Local_PS_Ops_Failed
	ERRCODE_GENID_FAILED
	ERRCODE_LOCALDB_OPTFAILED
	ERRCODE_SPACE_SCHEMA_INVALID
	ERRCODE_RPC_GET_CLIENT_FAILED
	ERRCODE_RPC_INVALID_RESP
	ERRCODE_RPC_INVOKE_FAILED
	ERRCODE_RPC_PARAM_ERROR
	ERRCODE_METHOD_NOT_IMPLEMENT
	ERRCODE_USER_NOT_EXISTS
	ERRCODE_DUP_USER
	ERRCODE_USER_OPS_FAILED
	ERRCODE_AUTHENTICATION_FAILED
	ERRCODE_REGION_NOT_EXISTS
	ERRCODE_MASTER_PS_CAN_NOT_SELECT
	ERRCODE_MASTER_PS_NOT_ENOUGH_SELECT
	ERRCODE_PARTITION_DUPLICATE
	ERRCODE_PARTITION_NOT_EXIST
	ERRCODE_PARTITION_NOT_LEADER
	ERRCODE_PARTITION_NO_LEADER
	ERRCODE_PARTITION_REQ_PARAM
	ERRCODE_PARTITON_ENGINENAME_INVALID
	ERRCODE_UNKNOWN_PARTITION_RAFT_CMD_TYPE
	ERRCODE_MASTER_SERVER_IS_NOT_RUNNING
	ERRCODE_PARTITION_IS_INVALID
	ERRCODE_PARTITION_IS_CLOSED
	ERRCODE_DOCUMENT_NOT_EXIST
	ERRCODE_DOCUMENT_EXIST
	ERRCODE_DOCUMENT_MUST_HAS_SOURCE
	ERRCODE_PULL_OUT_VERSION_NOT_MATCH
	ERRCODE_FUNC_CAN_NOT_INVOKE_IN_FROZEN_ENGINE
)
View Source
const ERRCODE_SUCCESS = 200

http response error code and error message definitions

View Source
const SUCCESS = "success"

Variables

This section is empty.

Functions

func CodeErr

func CodeErr(code int64) *vearchpb.VearchErr

func ErrCode

func ErrCode(err error) int64

get err code by error if error is nil , return ERRCODE_SUCCESS

func FormatErr

func FormatErr(err error) string

it will return format err, is not registe it will return general err string

func NewCodeErr

func NewCodeErr(code int64, msg string) *vearchpb.VearchErr

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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