lungo

package module
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

README

A fast and simple Mongo DB driver for Go.

Example and Documentation: lungo.dev/docs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() error

func Disconnect

func Disconnect() error

func GetCollection

func GetCollection(name string) *mongo.Collection

func Init

func Init(URI string) error

Types

type DatabaseConfig

type DatabaseConfig struct {
	Name string
	URI  string
}

type Fields

type Fields = []string

type Filter

type Filter = map[string]interface{}

type ObjectID added in v0.0.6

type ObjectID = primitive.ObjectID

func NewObjectID added in v0.0.7

func NewObjectID() ObjectID

func ObjectIDFromHex added in v0.0.9

func ObjectIDFromHex(s string) (ObjectID, error)

type Refs

type Refs = map[string]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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