mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
16 lines
378 B
Go
16 lines
378 B
Go
package interfaces
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/db/generic"
|
|
"time"
|
|
)
|
|
|
|
type ResultService interface {
|
|
Insert(records ...interface{}) (err error)
|
|
List(query generic.ListQuery, opts *generic.ListOptions) (results []interface{}, err error)
|
|
Count(query generic.ListQuery) (n int, err error)
|
|
Index(fields []string)
|
|
SetTime(t time.Time)
|
|
GetTime() (t time.Time)
|
|
}
|