mongo

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

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

Mongo contains functions for empty_id mongodb.

func New

func New(mdb *mongo.Database) *Mongo

New to create new empty_id database.

func (*Mongo) Create

func (m *Mongo) Create(ctx context.Context, id int64) (int, error)

Create to create empty id.

func (*Mongo) Delete

func (m *Mongo) Delete(ctx context.Context, id int64) (int, error)

Delete to empty id.

func (*Mongo) Get

func (m *Mongo) Get(ctx context.Context, id int64) (int64, int, error)

Get to get empty id.

func (*Mongo) GetIDs

func (m *Mongo) GetIDs(ctx context.Context) ([]int64, int, error)

GetIDs to all empty id.

Jump to

Keyboard shortcuts

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