mongo

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInterfaceList

func ToInterfaceList[T any](l []T) []interface{}

Types

type Client

type Client struct {
	Client       *mongo.Client
	DatabaseName string
}

func NewClient

func NewClient(ctx context.Context, c config.Mongo) (Client, error)

func (*Client) Collection

func (a *Client) Collection(collectionName string) *mongo.Collection

func (*Client) DropDatabase

func (a *Client) DropDatabase(ctx context.Context) error

Jump to

Keyboard shortcuts

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