Help us shape the future of Go! Take the 2026 Go Developer Survey

mongo

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 11 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 {
	Client     *mongo.Client
	Database   *mongo.Database
	Collection *mongo.Collection
	// contains filtered or unexported fields
}

func NewGenerator

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

func (*Generator) Aggregate

func (g *Generator) Aggregate(pipeline string) error

func (*Generator) Delete

func (g *Generator) Delete(filter string) error

func (*Generator) Find

func (g *Generator) Find(filter string) error

Lua-specific methods for different MongoDB operations

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) Insert

func (g *Generator) Insert(document string) error

func (*Generator) Tick

func (g *Generator) Tick() error

func (*Generator) Update

func (g *Generator) Update(filter, update string) error

type GeneratorOptions

type GeneratorOptions struct {
	ConnectionString string
	Database         string
	Collection       string
	Operation        string
	Document         string
	Filter           string
	Update           string
	Username         string
	Password         string
	AuthDB           string
	TLS              bool
}

func NewOptions

func NewOptions() *GeneratorOptions

Jump to

Keyboard shortcuts

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