database

package
v0.0.0-...-2d31ac5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConnectionString string
}

type DBConnection

type DBConnection struct {
	Client *mongo.Client
}

type IDatabase

type IDatabase interface {
	Connect() (*mongo.Client, error)
}

type Mongo

type Mongo struct {
	ConnectionString string
}

func (Mongo) Connect

func (d Mongo) Connect() (connection DBConnection, err error)

Jump to

Keyboard shortcuts

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