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

17 lines
399 B
Go
Raw Permalink Normal View History

2019-05-27 21:46:09 +00:00
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)
}