17 lines
284 B
Go
Executable File
17 lines
284 B
Go
Executable File
package storage
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"gitea.bel.blue/local/rproxy3/storage/packable"
|
|
)
|
|
|
|
var ErrNotFound = errors.New("not found")
|
|
|
|
type DB interface {
|
|
Get(string, string, packable.Packable) error
|
|
Set(string, string, packable.Packable) error
|
|
Keys(string) []string
|
|
Close() error
|
|
}
|