xk6_mongo

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

xk6-mongo

xk6-mongo

  • Enhance code

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is the Mongo client wrapper.

func (*Client) Find

func (c *Client) Find(database string, collection string, filter map[string]string) bson.Raw

func (*Client) FindOne

func (c *Client) FindOne(databaseName string, collectionName string, objectIdStr string) int

type Mongo

type Mongo struct{}

Mongo is the k6 extension for a Mongo client.

func (*Mongo) XClient

func (m *Mongo) XClient(ctxPtr *context.Context, connURI string) interface{}

XClient represents the Client constructor (i.e. `new mongo.Client()`) and returns a new Mongo client object. connURI -> mongodb://username:password@address:port/db?connect=direct

Jump to

Keyboard shortcuts

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