-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ccf383
commit ad0ecaf
Showing
4 changed files
with
123 additions
and
3 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package bitcaspy | ||
|
||
import "errors" | ||
|
||
var ( | ||
ErrLocked = errors.New("a lockfile already exists") | ||
ErrReadOnly = errors.New("operation not allowed in read only mode") | ||
|
||
ErrChecksumMismatch = errors.New("invalid data: checksum does not match") | ||
|
||
ErrEmptyKey = errors.New("invalid key: key cannot be empty") | ||
ErrExpiredKey = errors.New("invalid key: key is already expired") | ||
ErrLargeKey = errors.New("invalid key: size cannot be more than 4294967296 bytes") | ||
ErrNoKey = errors.New("invalid key: key is either deleted or expired or unset") | ||
|
||
ErrLargeValue = errors.New("invalid value: size cannot be more than 4294967296 bytes") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters