mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 23:55:27 +00:00
35 lines
776 B
Go
35 lines
776 B
Go
|
|
package vnc
|
||
|
|
|
||
|
|
import (
|
||
|
|
lib_vnc "github.com/projectdiscovery/nuclei/v2/pkg/js/libs/vnc"
|
||
|
|
|
||
|
|
"github.com/dop251/goja"
|
||
|
|
"github.com/projectdiscovery/nuclei/v2/pkg/js/gojs"
|
||
|
|
)
|
||
|
|
|
||
|
|
var (
|
||
|
|
module = gojs.NewGojaModule("nuclei/vnc")
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
module.Set(
|
||
|
|
gojs.Objects{
|
||
|
|
// Functions
|
||
|
|
|
||
|
|
// Var and consts
|
||
|
|
|
||
|
|
// Types (value type)
|
||
|
|
"IsVNCResponse": func() lib_vnc.IsVNCResponse { return lib_vnc.IsVNCResponse{} },
|
||
|
|
"VNCClient": func() lib_vnc.VNCClient { return lib_vnc.VNCClient{} },
|
||
|
|
|
||
|
|
// Types (pointer type)
|
||
|
|
"NewIsVNCResponse": func() *lib_vnc.IsVNCResponse { return &lib_vnc.IsVNCResponse{} },
|
||
|
|
"NewVNCClient": func() *lib_vnc.VNCClient { return &lib_vnc.VNCClient{} },
|
||
|
|
},
|
||
|
|
).Register()
|
||
|
|
}
|
||
|
|
|
||
|
|
func Enable(runtime *goja.Runtime) {
|
||
|
|
module.Enable(runtime)
|
||
|
|
}
|