Documentation ¶
Index ¶
- Constants
- func MakeCreateTableLocal(t *ckdb.Table, dstTable, aggrSummable, aggrUnsummable string) string
- func MakeGlobalTableCreateSQL(t *ckdb.Table, dstTable string) string
- func MakeMVTableCreateSQL(t *ckdb.Table, dstTable, aggrSummable, aggrUnsummable string, ...) string
- type ActionEnum
- type AddBody
- type AggrEnum
- type DatasourceManager
- type DelBody
- type IntervalEnum
- type JsonResp
- type ModBody
- type TableType
Constants ¶
View Source
const ( ORIGIN_TABLE_1M = "1m" ORIGIN_TABLE_1S = "1s" FLOW_LOG_L4 = "flow_log.l4" FLOW_LOG_L7 = "flow_log.l7" )
View Source
const (
DATASOURCE_PORT = 20106
)
Variables ¶
This section is empty.
Functions ¶
func MakeCreateTableLocal ¶
func MakeMVTableCreateSQL ¶
Types ¶
type ActionEnum ¶
type ActionEnum uint8
const ( ADD ActionEnum = iota DEL MOD )
func ActionToEnum ¶
func ActionToEnum(action string) (ActionEnum, error)
type DatasourceManager ¶
type DatasourceManager struct {
// contains filtered or unexported fields
}
func NewDatasourceManager ¶
func NewDatasourceManager(cfg *config.Config, readTimeout int) *DatasourceManager
func (*DatasourceManager) Close ¶
func (m *DatasourceManager) Close() error
func (*DatasourceManager) Handle ¶
func (m *DatasourceManager) Handle(dbGroup, action, baseTable, dstTable, aggrSummable, aggrUnsummable string, interval, duration int) error
func (*DatasourceManager) RegisterHandlers ¶
func (m *DatasourceManager) RegisterHandlers()
func (*DatasourceManager) Start ¶
func (m *DatasourceManager) Start()
Click to show internal directories.
Click to hide internal directories.