mongodb

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: BSD-3-Clause Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(ctx micro.Context, name string) (*mongo.Client, error)

func GetDB

func GetDB(ctx micro.Context, name string) (*mongo.Database, error)

Types

type MongoDBService

type MongoDBService interface {
	micro.Service
	GetClient() *mongo.Client
	GetDB() *mongo.Database
}

Jump to

Keyboard shortcuts

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