db

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

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 7 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 {
	Connection       string `default:"mongodb://localhost:31060"`
	Name             string `default:"app_blacklist"`
	DirectConnection bool   `default:"true"`
}

type Database

type Database struct {
	DB *mongo.Database
	// contains filtered or unexported fields
}

func New

func New(cfg Config, logger logger.Logger) (*Database, error)

Jump to

Keyboard shortcuts

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