Documentation ¶
Index ¶
- type JSRE
- func (jsre *JSRE) CompleteKeywords(line string) []string
- func (jsre *JSRE) Do(fn func(*otto.Otto))
- func (jsre *JSRE) Exec(code string) (v otto.Value, err error)
- func (jsre *JSRE) RegisterAPIClient(client *shttp.CrudClient)
- func (jsre *JSRE) RegisterAPIServer(g *graph.Graph, gremlinParser *traversal.GremlinTraversalParser, ...)
- func (jsre *JSRE) RunScript(path string) otto.Value
- func (jsre *JSRE) Start()
- func (jsre *JSRE) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSRE ¶
JSRE is a Skydive JavaScript runtime environment
func (*JSRE) CompleteKeywords ¶
CompleteKeywords returns potential continuations for the given line. Since line is evaluated, callers need to make sure that evaluating line does not have side effects.
func (*JSRE) RegisterAPIClient ¶
func (jsre *JSRE) RegisterAPIClient(client *shttp.CrudClient)
func (*JSRE) RegisterAPIServer ¶
func (jsre *JSRE) RegisterAPIServer(g *graph.Graph, gremlinParser *traversal.GremlinTraversalParser, server *server.Server)
RegisterAPIServer
Click to show internal directories.
Click to hide internal directories.