mongo

package
v0.0.0-...-7f18cf7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminUser = &adminUser{}
View Source
var Category = &category{}
View Source
var Entity = &entity{}
View Source
var LostPassword = &lostPassword{}
View Source
var Tag = &tag{}
View Source
var User = &user{}
View Source
var UserAction = &userAction{}

Functions

func DB

func DB() *mongo.Database

For seed/migration/restore data

func New

func New() *mongo.Database

New returns an initialized JWT instance.

Types

type Config

type Config struct {
	URL      string
	Database string
}

Config contains the environment variables requirements to initialize mongodb.

Jump to

Keyboard shortcuts

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