qmgo

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

/////////////////////////////////////// not used yet ///////////////////////////////////////

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	V    any      `bson:"v"`
	Ns   any      `bson:"ns"`
	Key  []bson.E `bson:"key"`
	Name string   `bson:"name"`
}

type MongoRepo

type MongoRepo struct {
	// contains filtered or unexported fields
}

func New

func New(config *mongo.MongoConfig, logger *zap.Logger) (repo *MongoRepo, err error)

func (*MongoRepo) CreateIndexes

func (m *MongoRepo) CreateIndexes(ctx context.Context, name string, indexes [][]string) error

func (*MongoRepo) Indexes

func (m *MongoRepo) Indexes(ctx context.Context) error

func (*MongoRepo) Initialization

func (m *MongoRepo) Initialization(mongoConfig *mongo.MongoConfig, logger *zap.Logger) error

Jump to

Keyboard shortcuts

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