mongodbstorage

package
v0.0.0-...-8bf6529 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// ClientURL is the mongodb  server address
	ClientURL string

	// Client is the MongoDB connection
	Client *mongo.Client

	//DataBase is the MongoDB database.
	DataBase string

	//Collection is the MongoDB Collection.
	Collection string
}

Storage implements the Mongo storage backend

func (*Storage) Init

func (s *Storage) Init() error

Init initializes the mongodb storage

Jump to

Keyboard shortcuts

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