mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-23 10:42:12 +00:00
17 lines
451 B
Go
17 lines
451 B
Go
|
package storage
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
// ErrNotFound is the error returned when a key cannot be found in storage
|
||
|
ErrNotFound = errors.New("storage: key not found")
|
||
|
|
||
|
// ErrAlreadyExist is the error returned when a key already exists in storage
|
||
|
ErrAlreadyExists = errors.New("storage: key already exists")
|
||
|
|
||
|
// ErrInvalidkey is the error returned when an invalid key is passed to storage
|
||
|
ErrInvalidKey = errors.New("storage: invalid key")
|
||
|
)
|