package
0.0.0-20230929044258-5bc4adceea93
Repository: https://github.com/sowinskibraeden/devicebookingapi.git
Documentation: pkg.go.dev

# Functions

NewClient uses the values from the config and returns a mongo client.
NewCowDatabase initialized a new instance of a cow database with the provided db conntection.
NewDatabase uses the client from NewClient and sets the database name.
NewDeviceDatabase initializes a new instance of a device database with the provided db connection.
NewCowDatabase initialized a new instance of a cow database with the provided db conntection.

# Interfaces

ClientHelper defined to help at client creation inside main.go.
CollectionHelper contains all the methods defined for collection in this project.
CowDatabase contains the methods to use with the cow database.
CursorHelper contains a method to decode the cursor.
DatabaseHelper contains the collection and client to be used to access the methods defined below.
DeviceDatabase contains the methods to use with the cow database.
SingleResultHelper contains a single method to decode the result.
UserDatabase contains the methods to use with the cow database.