mongodb

package
v0.0.0-...-9181ec4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context) (db.Database, error)

Types

type Mongo

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

func (*Mongo) Get

func (m *Mongo) Get() (int64, int64, error)

Get returns the total number of items registered, and how many of them are valid

func (*Mongo) Set

func (m *Mongo) Set(seq []string, valid bool) error

Set creates a new entry on the database, with an unique ID

Jump to

Keyboard shortcuts

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