neo4j

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 7 Imported by: 0

README

xk6-neo4j

An k6 extension to interact with neo4j

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address                 string        `js:"address"`
	User                    string        `js:"user"`
	HTTPPort                int           `js:"httpPort"`
	HTTPSPort               int           `js:"httpsPort"`
	Password                string        `js:"password"`
	MaxTransactionRetryTime time.Duration `js:"maxTransactionRetryTime"`
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver is the neo4j driver wrapper.

func (*Driver) RunCypherInSession

func (d *Driver) RunCypherInSession(cypher string) RunCypherResult

type Neo4j

type Neo4j struct{}

Neo4j is the k6 extension for a Neo4j driver.

func (*Neo4j) XDriver

func (*Neo4j) XDriver(ctxPtr *context.Context, cfg Config) interface{}

XDriver represents the Driver constructor (i.e. `neo4.j.NewDriver()`) and

type RunCypherResult

type RunCypherResult struct {
	Result neo4j.Result `js:"result"`
	Error  error        `js:"error"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL