Files
crawlab/core/task/log/interface.go
Marvin Zhang 4f57d277e7 refactor: standardize timestamp fields and improve code clarity
- 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.
2025-04-21 18:13:22 +08:00

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)
}