package_uts

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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 InsertMuseumCollection(name string, description string, items []interface{}, location string, openingHours string, establishedYear int, director string, website string, visitorCount int) (insertedID interface{})

func InsertMuseumItem

func InsertMuseumItem(name string, description string, year int, artist string, medium string, dimensions string, origin string, acquisition string, condition string) (insertedID interface{})

func InsertOneDoc

func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{})

func MongoConnect

func MongoConnect(dbname string) (db *mongo.Database)

Types

This section is empty.

Jump to

Keyboard shortcuts

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