status

package
v1.5.6-perf-and-mqtt Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error int
const (
	// internal error
	InternalServerError Error = http.StatusInternalServerError*1e6 + iota + 1
	// @errTalk Database Error
	DatabaseError
	// @errTalk Upload File Failed
	UploadFileFailed
	// @errTalk Fetch Resource Failed
	FetchResourceFailed
	// @errTalk Config Init Failed
	ConfigInitFailed
	// @errTalk Config Uninit Failed
	ConfigUninitFailed
	// @errTalk Config Parse Failed
	ConfigParseFailed
	// @errTalk Create Instance Failed
	CreateInstanceFailed
	// @errTalk Batch Remove Applet Failed
	BatchRemoveAppletFailed
	// @errTalk MQTT Subscribe Failed
	MqttSubscribeFailed
	// @errTalk MQTT Connect Failed
	MqttConnectFailed
	// @errTalk Batch Remove WasmLog Failed
	BatchRemoveWasmLogFailed
	// @errTalk Gen Token Failed
	GenTokenFailed
	// @errTalk Traffic Limit Exceeded Failed
	TrafficLimitExceededFailed
	// @errTalk Create Traffic Scheduler Failed
	CreateTrafficSchedulerFailed
	// @errTalk Update Traffic Scheduler Failed
	UpdateTrafficSchedulerFailed
)
const (
	// unauthorized
	Unauthorized Error = http.StatusUnauthorized*1e6 + iota + 1
	// @errTalk Invalid Auth Value
	InvalidAuthValue
	// @errTalk Invalid Auth Account ID
	InvalidAuthAccountID
	// @errTalk No Project Permission
	NoProjectPermission
	// @errTalk No Operator Permission
	NoOperatorPermission
	// @errTalk No Admin Permission
	NoAdminPermission
	// @errTalk Invalid Old Password
	InvalidOldPassword
	// @errTalk Invalid New Password
	InvalidNewPassword
	// @errTalk Invalid Password
	InvalidPassword
	// @errTalk Invalid Siwe Signature
	InvalidEthLoginSignature
	// @errTalk Invalid Siwe Message
	InvalidEthLoginMessage
	// @errTalk Invalid Auth Publisher ID
	InvalidAuthPublisherID
	// @errTalk Current Account Absence
	CurrentAccountAbsence
	// @errTalk Invalid Event Channel
	InvalidEventChannel
	// @errTalk Invalid Event Token
	InvalidEventToken
	// @errTalk Invalid Applet
	InvalidAppletContext
	// @errTalk No Resource Permission
	NoResourcePermission
	// @errTalk Invalid Account Access Key
	InvalidAccessKey
)
const (
	// forbidden
	Forbidden Error = http.StatusForbidden*1e6 + iota + 1
	// @errTalk Disabled Account
	DisabledAccount
	// @errTalk White List Forbidden
	WhiteListForbidden
	// @errTalk Upload File Size Limit
	UploadFileSizeLimit
	// @errTalk Upload File Md5 Unmatched
	UploadFileMd5Unmatched
	// @errTalk Upload File Disk Limit
	UploadFileDiskLimit
	// @errTalk Topic Already Subscribed
	TopicAlreadySubscribed
	// @errTalk Occupied Operator
	OccupiedOperator
	// @errTalk Unsupported FileSystem Operator
	UnsupportedFSOperator
	// @errTalk Account Access Key Expired
	AccessKeyExpired
	// @errTalk Access Key Permission Denied
	AccessKeyPermissionDenied
)
const (
	// @errTalk Conflict conflict error
	Conflict Error = http.StatusConflict*1e6 + iota + 1
	// @errTalk Project Name Conflict
	ProjectNameConflict
	// @errTalk Resource Conflict
	ResourceConflict
	// @errTalk Resource Owner Conflict
	ResourceOwnerConflict
	// @errTalk Strategy Conflict
	StrategyConflict
	// @errTalk Config Conflict
	ConfigConflict
	// @errTalk Publisher Conflict
	PublisherConflict
	// @errTalk Multi Instance Deployed
	MultiInstanceDeployed
	// @errTalk Applet Name Conflict
	AppletNameConflict
	// @errTalk Cron Job Conflict
	CronJobConflict
	// @errTalk Contract Log Conflict
	ContractLogConflict
	// @errTalk Chain Tx Conflict
	ChainTxConflict
	// @errTalk Chain Height Conflict
	ChainHeightConflict
	// @errTalk Account Identity Conflict
	AccountIdentityConflict
	// @errTalk Account Conflict
	AccountConflict
	// @errTalk Account Password Conflict
	AccountPasswordConflict
	// @errTalk Operator Conflict
	OperatorConflict
	// @errTalk Traffic Limit Conflict
	TrafficLimitConflict
	// @errTalk Project Operator relationship Conflict
	ProjectOperatorConflict
	// @errTalk Access Key Name Conflict
	AccessKeyNameConflict
)
const (
	// @errTalk BadRequest
	BadRequest Error = http.StatusBadRequest*1e6 + iota + 1
	// @errTalk Invalid Config Type
	InvalidConfigType
	// @errTalk Deprecated Project
	DeprecatedProject
	// @errTalk Unknown Deploy Command
	UnknownDeployCommand
	// @errTalk Invalid Cron Expressions
	InvalidCronExpressions
	// @errTalk Invalid Private Key
	InvalidPrivateKey
	// @errTalk Invalid Delete Condition
	InvalidDeleteCondition
	// @errTalk Unknown Deploy Command
	UnknownMonitorCommand
	// @errTalk Invalid Contract Log IDs
	InvalidContractLogIDs
	// @errTalk Invalid Chain Tx IDs
	InvalidChainTxIDs
	// @errTalk Invalid Chain Height IDs
	InvalidChainHeightIDs
	// @errTalk Invalid VM State
	InvalidVMState
	// @errTalk Invalid Access Key Identity Type
	InvalidAccessKeyIdentityType
)
const (
	// @errTalk NotFound
	NotFound Error = http.StatusNotFound*1e6 + iota + 1
	// @errTalk Project Not Found
	ProjectNotFound
	// @errTalk Config Not Found
	ConfigNotFound
	// @errTalk Resource Not Found
	ResourceNotFound
	// @errTalk Applet Not Found
	AppletNotFound
	// @errTalk Instance Not Found
	InstanceNotFound
	// @errTalk Strategy Not Found
	StrategyNotFound
	// @errTalk Publisher Not Found
	PublisherNotFound
	// @errTalk Account Identity Not Found
	AccountIdentityNotFound
	// @errTalk Resource Perm Not Found
	ResourcePermNotFound
	// @errTalk Cron Job Not Found
	CronJobNotFound
	// @errTalk Instance Not Running
	InstanceNotRunning
	// @errTalk Blockchain Not Found
	BlockchainNotFound
	// @errTalk Contract Log Not Found
	ContractLogNotFound
	// @errTalk Chain Tx Not Found
	ChainTxNotFound
	// @errTalk Chain Height Not Found
	ChainHeightNotFound
	// @errTalk Account Not Found
	AccountNotFound
	// @errTalk Account Password Not Found
	AccountPasswordNotFound
	// @errTalk Operator Not Found
	OperatorNotFound
	// @errTalk Traffic Limit Not Found
	TrafficLimitNotFound
	// @errTalk Project Operator relationship Not Found
	ProjectOperatorNotFound
	// @errTalk Account Key Not Found
	AccessKeyNotFound
)

func (Error) CanBeTalk

func (v Error) CanBeTalk() bool

func (Error) Code

func (v Error) Code() int

func (Error) Error

func (v Error) Error() string

func (Error) Key

func (v Error) Key() string

func (Error) Msg

func (v Error) Msg() string

func (Error) ServiceCode

func (Error) ServiceCode() int

func (Error) StatusCode

func (v Error) StatusCode() int

func (Error) StatusErr

func (v Error) StatusErr() *statusx.StatusErr

func (Error) Unwrap

func (v Error) Unwrap() error

Jump to

Keyboard shortcuts

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