This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
bactdb/entities.go
2015-06-02 11:11:06 -08:00

18 lines
294 B
Go

package main
type entity interface {
marshal() ([]byte, error)
}
type getter interface {
get(int64, string) (entity, error)
}
type lister interface {
list(*ListOptions) (entity, error)
}
type updater interface {
update(int64, *entity, Claims) error
unmarshal([]byte) (entity, error)
}