db

package
v0.0.0-...-afe34ac Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *mongo.Client

Functions

func Disconnect

func Disconnect() error

func GetConnection

func GetConnection() error

func GetData

func GetData(filter interface{}) ([]bson.M, error)

Types

type TypeInfo

type TypeInfo struct {
	ID        primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Project   string             `json:"project" bson:"Project,omitempty"`
	Namespace string             `json:"namespace" bson:"Namespace,omitempty"`
	Class     string             `json:"class" bson:"Class,omitempty"`
	Type      string             `json:"type" bson:"Type,omitempty"`
}

Jump to

Keyboard shortcuts

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