services

package
v0.0.0-...-4d27c10 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoInstance

type MongoInstance struct {
	Client *mongo.Client
	Db     *mongo.Database
}

type MongoService

type MongoService struct {
	Mongo_URL string
	Database  string
	// contains filtered or unexported fields
}

func NewMongoService

func NewMongoService(url, database string) *MongoService

func (*MongoService) Disconnect

func (m *MongoService) Disconnect() error

func (*MongoService) GetConnection

func (m *MongoService) GetConnection() (*mongo.Database, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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