Tarun Koyalwar dc44105baf
nuclei v3 : misc updates (#4247)
* use parsed options while signing

* update project layout to v3

* fix .gitignore

* remove example template

* misc updates

* bump tlsx version

* hide template sig warning with env

* js: retain value while using log

* fix nil pointer derefernce

* misc doc update

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2023-10-17 17:44:13 +05:30

36 lines
694 B
Go

package redis
import (
lib_redis "github.com/projectdiscovery/nuclei/v3/pkg/js/libs/redis"
"github.com/dop251/goja"
"github.com/projectdiscovery/nuclei/v3/pkg/js/gojs"
)
var (
module = gojs.NewGojaModule("nuclei/redis")
)
func init() {
module.Set(
gojs.Objects{
// Functions
"Connect": lib_redis.Connect,
"GetServerInfo": lib_redis.GetServerInfo,
"GetServerInfoAuth": lib_redis.GetServerInfoAuth,
"IsAuthenticated": lib_redis.IsAuthenticated,
"RunLuaScript": lib_redis.RunLuaScript,
// Var and consts
// Types (value type)
// Types (pointer type)
},
).Register()
}
func Enable(runtime *goja.Runtime) {
module.Enable(runtime)
}