mongo

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteMongoDataToFile

func WriteMongoDataToFile(filename string, data []MongoData) error

Types

type MongoData

type MongoData struct {
	ID      int    `json:"id"`
	Payload string `json:"payload"`
}

func GenerateMongoData

func GenerateMongoData(count int, size int64) []MongoData

count is the number of entries to generate size is the size of each data for each entry

Jump to

Keyboard shortcuts

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