mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
13 lines
349 B
Go
13 lines
349 B
Go
package storage
|
|
|
|
// Store defines a standard interface for storage
|
|
type Store interface {
|
|
Close() error
|
|
Create(UID []byte, URL []byte) (*Record, error)
|
|
FindByUID(UID []byte) (*Record, error)
|
|
FindByURL(URL []byte) (*Record, error)
|
|
DeleteByUID(UID []byte) (*Record, error)
|
|
DeleteByURL(URL []byte) (*Record, error)
|
|
NextSequence() (int, error)
|
|
}
|