feat: added modules

This commit is contained in:
Marvin Zhang
2024-06-14 15:42:50 +08:00
parent 4d0adcb6f0
commit c4d795f47f
626 changed files with 60104 additions and 0 deletions

16
core/task/log/entity.go Normal file
View File

@@ -0,0 +1,16 @@
package log
import "time"
type Message struct {
Id int64 `json:"id" bson:"id"`
Msg string `json:"msg" bson:"msg"`
Ts time.Time `json:"ts" bson:"ts"`
}
type Metadata struct {
Size int64 `json:"size,omitempty" bson:"size"`
TotalLines int64 `json:"total_lines,omitempty" bson:"total_lines"`
TotalBytes int64 `json:"total_bytes,omitempty" bson:"total_bytes"`
Md5 string `json:"md5,omitempty" bson:"md5"`
}