storage

package
v0.0.0-...-1edc23f Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoClient

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

func NewMongoClient

func NewMongoClient(URI string) (*MongoClient, error)

func (*MongoClient) DropDatabase

func (mc *MongoClient) DropDatabase(
	ctx context.Context,
	database string,
) error

func (*MongoClient) FindByID

func (mc *MongoClient) FindByID(
	ctx context.Context,
	database,
	collection string,
	_id string,
) (map[string]interface{}, error)

func (*MongoClient) InsertRecord

func (mc *MongoClient) InsertRecord(
	ctx context.Context,
	database,
	collection string,
	record interface{},
) (string, error)

Jump to

Keyboard shortcuts

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