Files
streamsql/model/row.go
T
2025-04-07 17:27:58 +08:00

21 lines
271 B
Go

package model
import (
"time"
)
type RowEvent interface {
GetTimestamp() time.Time
}
type Row struct {
Timestamp time.Time
Data interface{}
Slot *TimeSlot
}
// GetTimestamp 获取时间戳
func (r *Row) GetTimestamp() time.Time {
return r.Timestamp
}