mirror of
https://gitee.com/rulego/streamsql.git
synced 2026-03-16 07:17:25 +00:00
21 lines
353 B
Go
21 lines
353 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/rulego/streamsql/aggregator"
|
|
)
|
|
|
|
type Config struct {
|
|
WindowConfig WindowConfig
|
|
GroupFields []string
|
|
SelectFields map[string]aggregator.AggregateType
|
|
FieldAlias map[string]string
|
|
}
|
|
type WindowConfig struct {
|
|
Type string
|
|
Params map[string]interface{}
|
|
TsProp string
|
|
TimeUnit time.Duration
|
|
}
|