mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
feat: added modules
This commit is contained in:
10
core/task/log/interface.go
Normal file
10
core/task/log/interface.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package log
|
||||
|
||||
type Driver interface {
|
||||
Init() (err error)
|
||||
Close() (err error)
|
||||
WriteLine(id string, line string) (err error)
|
||||
WriteLines(id string, lines []string) (err error)
|
||||
Find(id string, pattern string, skip int, limit int) (lines []string, err error)
|
||||
Count(id string, pattern string) (n int, err error)
|
||||
}
|
||||
Reference in New Issue
Block a user