Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultDBPath is the default path to the SQLite database.
DefaultDBPath = "kv.db"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyExistsError ¶
type KeyExistsError struct {
// contains filtered or unexported fields
}
func NewKeyExistsError ¶
func NewKeyExistsError(key string) KeyExistsError
func (KeyExistsError) Error ¶
func (e KeyExistsError) Error() string
type KeyNotFoundError ¶
type KeyNotFoundError struct {
// contains filtered or unexported fields
}
func NewKeyNotFoundError ¶
func NewKeyNotFoundError(key string) KeyNotFoundError
func (KeyNotFoundError) Error ¶
func (e KeyNotFoundError) Error() string
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo represents the key-value store repository.
func (*Repo) Delete ¶
Delete deletes the key-value pair associated with the given key. It returns an error if the key doesn't exist.
Click to show internal directories.
Click to hide internal directories.