constant

package
v0.0.0-...-ce3f185 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_TASK_LIST_LIMIT     = 2000
	DEFAULT_TASK_LIST_LIMIT = 2000
)
View Source
const (
	HEADER_USERID = "User-Id"
)

Variables

View Source
var (
	SUCCESS           = 0
	ERR_INPUT_INVALID = 8020
	ERR_SHOULD_BIND   = 8021
	ERR_JSON_MARSHAL  = 8022

	ERR_GET_TASK_INFO                  = 8035
	ERR_GET_TASK_HANDLE_PROCESS        = 8036
	ERR_CREATE_TASK                    = 8037
	ERR_GET_TASK_LIST_FROM_DB          = 8038
	ERR_GET_TASK_SET_POS_FROM_DB       = 8039
	ERR_INCREASE_CRT_RETRY_NUM         = 8040
	ERR_SET_TASK                       = 8041
	ERR_GET_TASK_POS                   = 8042
	ERR_GET_PROCESSING_COUNT           = 8043
	ERR_SET_USER_PRIORITY              = 8044
	ERR_GET_TASK_CFG_FROM_DB           = 8045
	ERR_GET_TASK_COUNT_FROM_DB         = 8046
	ERR_REGISTER_TASK_CREATE_NEW_TABLE = 8047
	ERR_REGISTER_TASK_INSERT_RECORD    = 8048
)
View Source
var (
	ERR_HANDLE_INPUT = errors.New("handle input error")
)

Functions

func GetErrMsg

func GetErrMsg(code int) string

GetErrMsg 获取错误描述

Types

This section is empty.

Jump to

Keyboard shortcuts

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