model

package
v0.0.0-...-edc8300 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCollection

func SetCollection(uri string, databaseName string, collectionName string) *collectionModel.Init

func SetDatabase

func SetDatabase(uri string, databaseName string) *databaseModel.Init

Types

type Init

type Init struct {
	Client *mongo.Client
}

func Default

func Default(uri string) *Init

func (*Init) Database

func (this *Init) Database(databaseName string) *databaseModel.Init

func (*Init) Get

func (this *Init) Get() []string

Jump to

Keyboard shortcuts

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