store

package
v0.0.0-...-42d6aa1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) 2023 Tiago Melo. All rights reserved. Use of this source code is governed by the MIT License that can be found in the LICENSE file.

Package store provides functionality to connect to a MongoDB instance and perform database operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDb

type MongoDb struct {
	DatabaseName string
	*mongo.Client
}

func Connect

func Connect(ctx context.Context, host, database string, port int) (*MongoDb, error)

Connect connects to a running MongoDB instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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