cql

package module
v0.0.0-...-03e3a7c Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CQL

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

CQL represents an instance of the JS module

func (*CQL) CheckTable

func (*CQL) CheckTable(session *gocql.Session, keyspace string, table string) bool

func (*CQL) Connect

func (cql *CQL) Connect(config Config) (*gocql.Session, error)

func (*CQL) Exec

func (*CQL) Exec(session *gocql.Session, stmt string) error

func (*CQL) Exports

func (cql *CQL) Exports() modules.Exports

func (*CQL) Insert

func (*CQL) Insert(session *gocql.Session, keyspace string, table string, col []string, vals []string) error

type Config

type Config struct {
	URL      string `json:"url"`
	Username string `json:"username"`
	Password string `json:"password"`
	Timeout  string `json:"timeout"`
	DC       string `json:"dc"`
}

type RootModule

type RootModule struct{}

RootModule is the global module instance that will create module instances for each VU

func (*RootModule) NewModuleInstance

func (m *RootModule) NewModuleInstance(vu modules.VU) modules.Instance

NewModuleInstance implements the modules.Module interface returning a new instance for each VU.

Jump to

Keyboard shortcuts

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