Documentation ¶
Index ¶
- Constants
- func GetCode(err error) int64
- type KvErr
- func NewBackgroundErr() *KvErr
- func NewBuildCoreErr() *KvErr
- func NewCloseFileErr() *KvErr
- func NewCopyFileErr() *KvErr
- func NewCoreNotFoundErr() *KvErr
- func NewCorruptErr() *KvErr
- func NewCreateTempFileErr() *KvErr
- func NewDirNotExistErr() *KvErr
- func NewExecCmdErr() *KvErr
- func NewFileClosedErr() *KvErr
- func NewFileIntegrityErr() *KvErr
- func NewFileNoPermissionErr() *KvErr
- func NewFileStatErr() *KvErr
- func NewFlockFileErr() *KvErr
- func NewGetErr() *KvErr
- func NewGetWdErr() *KvErr
- func NewInvalidParamErr() *KvErr
- func NewJsonMarshalErr() *KvErr
- func NewJsonUnmarshalErr() *KvErr
- func NewMkdirErr() *KvErr
- func NewNotFoundErr() *KvErr
- func NewOpenFileErr() *KvErr
- func NewParseIntErr() *KvErr
- func NewReachBlockIdxLimitErr() *KvErr
- func NewReadFileErr() *KvErr
- func NewReadSocketErr() *KvErr
- func NewRemoveFileErr() *KvErr
- func NewRenameFileErr() *KvErr
- func NewSeekFileErr() *KvErr
- func NewSegmentFullErr() *KvErr
- func NewSetErr() *KvErr
- func NewSyncFileErr() *KvErr
- func NewTruncateFileErr() *KvErr
- func NewUnknownErr() *KvErr
- func NewUnsupportedOperatorTypeErr() *KvErr
- func NewWalFullErr() *KvErr
- func NewWalkDirErr() *KvErr
- func NewWriteFileErr() *KvErr
- func NewWriteSocketErr() *KvErr
Constants ¶
View Source
const ( UnknownErrCode = 0 InvalidParamErrCode = 100001 JsonMarshalErrCode = 100002 JsonUnmarshalErrCode = 100003 UnsupportedOperatorTypeErrCode = 100004 OpenFileErrCode = 100005 DirNotExistErrCode = 100006 FileNoPermissionErrCode = 100007 FileStatErrCode = 100008 MkdirErrCode = 100009 ReadFileErrCode = 100010 WriteFileErrCode = 100011 SyncFileErrCode = 100012 CloseFileErrCode = 100013 FileIntegrityErrCode = 100014 ExecCmdErrCode = 100015 GetWdErrCode = 100016 WalkDirErrCode = 100017 FileClosedErrCode = 100018 SeekFileErrCode = 100019 SegmentFullErrCode = 100020 NotFoundErrCode = 100021 CorruptErrCode = 100022 WalFullErrCode = 100023 BackgroundErrCode = 100024 ReachBlockIdxLimitErrCode = 100025 GetErrCode = 100026 SetErrCode = 100027 BuildCoreErrCode = 200001 ParseIntErrCode = 100028 RenameFileErrCode = 100029 TruncateFileErrCode = 100030 RemoveFileErrCode = 100031 FlockFileErrCode = 100032 CreateTempFileErrCode = 100033 CopyFileErrCode = 100034 CoreNotFoundErrCode = 100035 ReadSocketErrCode = 100036 WriteSocketErrCode = 100037 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KvErr ¶
type KvErr struct {
// contains filtered or unexported fields
}
func NewBackgroundErr ¶
func NewBackgroundErr() *KvErr
func NewBuildCoreErr ¶
func NewBuildCoreErr() *KvErr
func NewCloseFileErr ¶
func NewCloseFileErr() *KvErr
func NewCopyFileErr ¶
func NewCopyFileErr() *KvErr
func NewCoreNotFoundErr ¶
func NewCoreNotFoundErr() *KvErr
func NewCorruptErr ¶
func NewCorruptErr() *KvErr
func NewCreateTempFileErr ¶
func NewCreateTempFileErr() *KvErr
func NewDirNotExistErr ¶
func NewDirNotExistErr() *KvErr
func NewExecCmdErr ¶
func NewExecCmdErr() *KvErr
func NewFileClosedErr ¶
func NewFileClosedErr() *KvErr
func NewFileIntegrityErr ¶
func NewFileIntegrityErr() *KvErr
func NewFileNoPermissionErr ¶
func NewFileNoPermissionErr() *KvErr
func NewFileStatErr ¶
func NewFileStatErr() *KvErr
func NewFlockFileErr ¶
func NewFlockFileErr() *KvErr
func NewGetWdErr ¶
func NewGetWdErr() *KvErr
func NewInvalidParamErr ¶
func NewInvalidParamErr() *KvErr
func NewJsonMarshalErr ¶
func NewJsonMarshalErr() *KvErr
func NewJsonUnmarshalErr ¶
func NewJsonUnmarshalErr() *KvErr
func NewMkdirErr ¶
func NewMkdirErr() *KvErr
func NewNotFoundErr ¶
func NewNotFoundErr() *KvErr
func NewOpenFileErr ¶
func NewOpenFileErr() *KvErr
func NewParseIntErr ¶
func NewParseIntErr() *KvErr
func NewReachBlockIdxLimitErr ¶
func NewReachBlockIdxLimitErr() *KvErr
func NewReadFileErr ¶
func NewReadFileErr() *KvErr
func NewReadSocketErr ¶
func NewReadSocketErr() *KvErr
func NewRemoveFileErr ¶
func NewRemoveFileErr() *KvErr
func NewRenameFileErr ¶
func NewRenameFileErr() *KvErr
func NewSeekFileErr ¶
func NewSeekFileErr() *KvErr
func NewSegmentFullErr ¶
func NewSegmentFullErr() *KvErr
func NewSyncFileErr ¶
func NewSyncFileErr() *KvErr
func NewTruncateFileErr ¶
func NewTruncateFileErr() *KvErr
func NewUnknownErr ¶
func NewUnknownErr() *KvErr
func NewUnsupportedOperatorTypeErr ¶
func NewUnsupportedOperatorTypeErr() *KvErr
func NewWalFullErr ¶
func NewWalFullErr() *KvErr
func NewWalkDirErr ¶
func NewWalkDirErr() *KvErr
func NewWriteFileErr ¶
func NewWriteFileErr() *KvErr
func NewWriteSocketErr ¶
func NewWriteSocketErr() *KvErr
Click to show internal directories.
Click to hide internal directories.