terrors

package
v0.1.19-b Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TError

type TError int
const (
	NotFound                 TError = iota + 10000
	DatabaseErr                     // database error
	ParametersAreWrong              // The parameters are wrong.
	CidToHashFiled                  // cid to hash failed
	UserStorageSizeNotEnough        // Insufficient user storage space
	UserNotFound                    // Unable to be found by the user
	NoDuplicateUploads              // No duplicate uploads
	BusyServer                      // Busy server
	NotFoundNode                    // Can't find the node.
	RequestNodeErr                  // Request node error
	MarshalErr                      // Marshal error

	VisitShareLinkOutOfMaxCount // visit share link out of max count
	VerifyTokenError            // verify token error
	OutOfMaxAPIKeyLimit         // out of max api key limit
	APPKeyAlreadyExist          // the APPKey already exist
	APPKeyNotFound              // the APPKey not found
	APIKeyACLError              // api key access control list error
	GroupNotEmptyCannotBeDelete // the group is not empty and cannot be deleted
	GroupNotExist               // group not exist
	GroupLimit                  // group limit
	CannotMoveToSubgroup        // cannot move to subgroup
	RootGroupCannotMoved        // the root group cannot be moved
	GroupsAreSame               // groups are the same

	NodeIPInconsistent // node ip inconsistent
	NodeDeactivate     // node deactivate
	NodeOffline        // node offline

	GenerateAccessToken // generate access token error

	Success = 0
	Unknown = -1
)

func (TError) Int

func (e TError) Int() int

func (TError) String

func (e TError) String() string

Jump to

Keyboard shortcuts

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