feta/storage/interface.go
sneak 2ecd833726
Some checks failed
continuous-integration/drone/push Build is failing
now actually does something
2020-03-27 19:57:58 -07:00

14 lines
294 B
Go

package storage
import (
"git.eeqj.de/sneak/feta/toot"
)
// TootStorageBackend is the interface to which storage backends must
// conform for storing toots
type TootStorageBackend interface {
TootExists(t *toot.Toot) bool
StoreToot(t *toot.Toot) error
StoreToots(tc []*toot.Toot) error
}