cql

package module
v0.0.0-...-0f84a0e 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

README

xk6-mongo

xk6-mongo

Reserved CU
%% Example of sequence diagram
  sequenceDiagram
    Alice->>Bob: Hello Bob, how are you?
    alt is sick
    Bob->>Alice: Not so good :(
    else is well
    Bob->>Alice: Feeling fresh like a daisy
    end
    opt Extra response
    Bob->>Alice: Thanks for asking
    end
sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!

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