db

package
v1.2.6-0...-daff01b Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB = "iot_db"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db interface {
	Get(string) (*mongo.Cursor, error)
	GetWithFilter(string, primitive.D) (*mongo.Cursor, error)
	FetchCollectionNames() ([]string, error)
	TimestampBetween(int, int) primitive.D
}

func New

func New(ctx context.Context, config models.Config) (Db, error)

type MongoDb

type MongoDb interface {
	Get(string, primitive.D, *options.FindOptions) (*mongo.Cursor, error)
	ListCollectionNames() ([]string, error)
	TimestampBetween(int, int) primitive.D
}

Jump to

Keyboard shortcuts

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