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-09 07:26:50 -08:00

25 lines
405 B
Go

package main
import "net/url"
type entity interface {
marshal() ([]byte, error)
}
type getter interface {
get(int64, string) (entity, error)
}
type lister interface {
list(*url.Values) (entity, error)
}
type updater interface {
update(int64, *entity, Claims) error
unmarshal([]byte) (entity, error)
}
type creater interface {
create(*entity, Claims) error
unmarshal([]byte) (entity, error)
}