mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
- Updated timestamp fields across the codebase from `*_ts` to `*_at` for consistency and clarity. - Renamed constants for node status from "on"/"off" to "online"/"offline" to better reflect their meanings. - Enhanced validation and error handling in various components to ensure data integrity. - Refactored test cases to align with the new naming conventions and improve readability.
11 lines
312 B
Go
11 lines
312 B
Go
package log
|
|
|
|
type Driver interface {
|
|
Init()
|
|
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, tail bool) (lines []string, err error)
|
|
Count(id string, pattern string) (n int, err error)
|
|
}
|