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-07-10 15:36:58 -08:00

25 lines
457 B
Go

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