日常查询由mysql改为clickhouse

This commit is contained in:
robin
2026-02-08 02:00:51 +08:00
parent bc223fd1aa
commit b7388d83b0
43 changed files with 657 additions and 353 deletions

View File

@@ -8,6 +8,8 @@ package injectionutils
#include <libinjection.h>
#include <stdlib.h>
*/
//go:build cgo
import "C"
import (
"github.com/TeaOSLab/EdgeNode/internal/utils/fasttime"

View File

@@ -0,0 +1,18 @@
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
//go:build !cgo
package injectionutils
import (
"github.com/TeaOSLab/EdgeNode/internal/waf/utils"
)
// DetectSQLInjectionCache detect sql injection in string with cache
func DetectSQLInjectionCache(input string, isStrict bool, cacheLife utils.CacheLife) bool {
return false
}
// DetectSQLInjection detect sql injection in string
func DetectSQLInjection(input string, isStrict bool) bool {
return false
}

View File

@@ -8,6 +8,8 @@ package injectionutils
#include <libinjection.h>
#include <stdlib.h>
*/
//go:build cgo
import "C"
import (
"github.com/TeaOSLab/EdgeNode/internal/utils/fasttime"

View File

@@ -0,0 +1,17 @@
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
//go:build !cgo
package injectionutils
import (
"github.com/TeaOSLab/EdgeNode/internal/waf/utils"
)
func DetectXSSCache(input string, isStrict bool, cacheLife utils.CacheLife) bool {
return false
}
// DetectXSS detect XSS in string
func DetectXSS(input string, isStrict bool) bool {
return false
}