mirror of
https://gitee.com/rulego/streamsql.git
synced 2026-03-13 22:07:22 +00:00
21 lines
271 B
Go
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
|
|
}
|