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/api/entities.go
2015-10-05 10:33:49 -07:00

28 lines
612 B
Go

package api
import (
"net/url"
"github.com/thermokarst/bactdb/types"
)
type Getter interface {
Get(int64, string, *types.Claims) (types.Entity, *types.AppError)
}
type Lister interface {
List(*url.Values, *types.Claims) (types.Entity, *types.AppError)
}
type Updater interface {
Update(int64, *types.Entity, string, *types.Claims) *types.AppError
Unmarshal([]byte) (types.Entity, error)
}
type Creater interface {
Create(*types.Entity, string, *types.Claims) *types.AppError
Unmarshal([]byte) (types.Entity, error)
}
type Deleter interface {
Delete(int64, string, *types.Claims) *types.AppError
}