cql

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Session *gocql.Session
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(id int, o GeneratorOptions, ctx context.Context, requestrate int, s *stats.Stats) *Generator

func (*Generator) AsMapBool

func (g *Generator) AsMapBool(c lua.LValue) (interface{}, error)

map<text, boolean>

func (*Generator) AsMapFloat

func (g *Generator) AsMapFloat(c lua.LValue) (interface{}, error)

map<text, float>

func (*Generator) AsMapInt

func (g *Generator) AsMapInt(c lua.LValue) (interface{}, error)

map<text, bigint>

func (*Generator) AsMapSetInt

func (g *Generator) AsMapSetInt(c lua.LValue) (interface{}, error)

map<string, set<bigint>>

func (*Generator) AsMapSetText

func (g *Generator) AsMapSetText(c lua.LValue) (interface{}, error)

map<string, set<text>>

func (*Generator) AsMapTimestamp

func (g *Generator) AsMapTimestamp(c lua.LValue) (interface{}, error)

map<text, boolean>

func (*Generator) AsSetInt

func (g *Generator) AsSetInt(c lua.LValue) ([]int, error)

set<bigint>

func (*Generator) AsSetMap

func (g *Generator) AsSetMap(c lua.LValue) (interface{}, error)

set<map<x, x>>

func (*Generator) AsSetText

func (g *Generator) AsSetText(c lua.LValue) ([]string, error)

set<text>

func (*Generator) AsTimestamp

func (g *Generator) AsTimestamp(i int64) time.Time

func (*Generator) Finish

func (g *Generator) Finish() error

func (*Generator) Init

func (g *Generator) Init() error

func (*Generator) InitDone

func (g *Generator) InitDone() error

func (*Generator) ObserveConnect

func (g *Generator) ObserveConnect(oc gocql.ObservedConnect)

func (*Generator) ObserveQuery

func (g *Generator) ObserveQuery(ctx context.Context, oq gocql.ObservedQuery)

func (*Generator) Tick

func (g *Generator) Tick() error

type GeneratorOptions

type GeneratorOptions struct {
	Targets           []string
	Query             string
	Keyspace          string
	Consistency       string
	Username          string
	Password          string
	Plaintext         bool
	Insecure          bool
	CaCert            string
	ClientCert        string
	ClientKey         string
	TlsServerName     string
	AstraSecureBundle string
	// Do not use node information from system.peers table, just use the
	// manually supplied ones
	DisablePeersLookup bool
	IgnorePeerAddr     bool

	ConnectTimeout    time.Duration
	WriteTimeout      time.Duration
	NumConnsPerHost   int
	EnableCompression bool
	NumRetries        int
	// TODO: configure it
	ReconnectionPolicy    string
	MaxPreparedStmts      int
	SerialConsistency     string
	HostSelectionPolicy   string
	DCName                string
	WriteCoalesceWaitTime time.Duration
	TrackMetricsPerNode   bool
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() *GeneratorOptions

Jump to

Keyboard shortcuts

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