Documentation ¶
Index ¶
- Variables
- func GetAllMuseumCollections() (collections []interface{})
- func GetAllMuseumItems() (items []interface{})
- func InsertMuseumCollection(name string, description string, items []interface{}, location string, ...) (insertedID interface{})
- func InsertMuseumItem(name string, description string, year int, artist string, medium string, ...) (insertedID interface{})
- func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})
- func MongoConnect(dbname string) (db *mongo.Database)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoConn = atdb.MongoConnect(MongoInfo)
View Source
var MongoInfo = atdb.DBInfo{ DBString: MongoString, DBName: "ats", }
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func GetAllMuseumCollections ¶
func GetAllMuseumCollections() (collections []interface{})
func GetAllMuseumItems ¶
func GetAllMuseumItems() (items []interface{})
func InsertMuseumCollection ¶
func InsertMuseumItem ¶
func InsertOneDoc ¶
func MongoConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.