mirror of
https://github.com/alibaba/higress.git
synced 2026-06-07 03:37:28 +08:00
Go WAF Plugin (#400)
This commit is contained in:
14
plugins/wasm-go/extensions/waf/init_tinygo.go
Normal file
14
plugins/wasm-go/extensions/waf/init_tinygo.go
Normal file
@@ -0,0 +1,14 @@
|
||||
//go:build tinygo
|
||||
|
||||
package main
|
||||
|
||||
import _ "github.com/wasilibs/nottinygc"
|
||||
|
||||
// Compiled by nottinygc for delayed free but Envoy doesn't stub it yet,
|
||||
// luckily nottinygc doesn't actually call the function, so it's fine to
|
||||
// stub it out.
|
||||
|
||||
//export sched_yield
|
||||
func sched_yield() int32 {
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user