package
0.0.0-20210330180253-dcf02bf6ed2e
Repository: https://github.com/buidl-labs/demux.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

InitMongoClient initializes the mongo client.
NewAssetDatabase returns an instance of AssetDatabase.
NewClient returns a ClientHelper for a given MONGO_URI.
NewDatabase returns a DatabaseHelper for a given db name and ClientHelper.
NewMeanSizeRatioDatabase returns an instance of MeanSizeRatioDatabase.
NewSizeRatioDatabase returns an instance of SizeRatioDatabase.
NewStorageDealDatabase returns an instance of StorageDealDatabase.
NewTranscodingDealDatabase returns an instance of TranscodingDealDatabase.
NewUploadDatabase returns an instance of UploadDatabase.
NewUserDatabase returns an instance of UserDatabase.

# Interfaces

AssetDatabase provides the asset db operations.
ClientHelper provides access to methods to control the db client.
CollectionHelper provides access to basic mongodb collection operations.
DatabaseHelper is an abstraction of the mongodb client instance.
MeanSizeRatioDatabase provides the msr db operations.
SingleResultHelper provides access to the mongo Decode function for a single result.
SizeRatioDatabase provides the sizeRatio db operations.
StorageDealDatabase provides the storageDeal db operations.
TranscodingDealDatabase provides the transcodingDeal db operations.
UploadDatabase provides the upload db operations.
UserDatabase provides the user db operations.