This repository has been archived on 2019-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
scoreboard/features/service.go
2019-05-27 23:46:09 +02:00

16 lines
399 B
Go

package features
import (
"reflect"
"git.cliffbreak.de/haveachin/scoreboard/service/filter"
)
type Service interface {
Create(v interface{}) error
Query(v interface{}, f *filter.Filter) error
QueryOne(v interface{}, f *filter.Filter) error
Update(v interface{}, f *filter.Filter) error
Delete(v interface{}, f *filter.Filter) error
RegisterCollection(t reflect.Type, collection string)
}