mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-25 13:55:27 +00:00
30 lines
526 B
Go
30 lines
526 B
Go
package postgres
|
|
|
|
import (
|
|
lib_postgres "github.com/projectdiscovery/nuclei/v3/pkg/js/libs/postgres"
|
|
|
|
"github.com/Mzack9999/goja"
|
|
"github.com/projectdiscovery/nuclei/v3/pkg/js/gojs"
|
|
)
|
|
|
|
var (
|
|
module = gojs.NewGojaModule("nuclei/postgres")
|
|
)
|
|
|
|
func init() {
|
|
module.Set(
|
|
gojs.Objects{
|
|
// Functions
|
|
|
|
// Var and consts
|
|
|
|
// Objects / Classes
|
|
"PGClient": gojs.GetClassConstructor[lib_postgres.PGClient](&lib_postgres.PGClient{}),
|
|
},
|
|
).Register()
|
|
}
|
|
|
|
func Enable(runtime *goja.Runtime) {
|
|
module.Enable(runtime)
|
|
}
|