Documentation ¶
Index ¶
- type AssetDatabase
- func (_m *AssetDatabase) GetAsset(_a0 string) (model.Asset, error)
- func (_m *AssetDatabase) IfAssetExists(_a0 string) bool
- func (_m *AssetDatabase) InsertAsset(_a0 model.Asset) error
- func (_m *AssetDatabase) UpdateAssetReady(_a0 string, _a1 bool) error
- func (_m *AssetDatabase) UpdateAssetStatus(_a0 string, _a1 int32, _a2 string, _a3 bool) error
- func (_m *AssetDatabase) UpdateStreamURL(_a0 string, _a1 string) error
- func (_m *AssetDatabase) UpdateThumbnail(_a0 string, _a1 string) error
- type ClientHelper
- type CollectionHelper
- func (_m *CollectionHelper) DeleteOne(ctx context.Context, filter interface{}) (int64, error)
- func (_m *CollectionHelper) Find(ctx context.Context, filter interface{}) (*mongo.Cursor, error)
- func (_m *CollectionHelper) FindOne(_a0 context.Context, _a1 interface{}) dataservice.SingleResultHelper
- func (_m *CollectionHelper) InsertOne(_a0 context.Context, _a1 interface{}) (interface{}, error)
- func (_m *CollectionHelper) UpdateOne(_a0 context.Context, _a1 interface{}, _a2 interface{}) (int64, error)
- type DatabaseHelper
- type MeanSizeRatioDatabase
- type SingleResultHelper
- type SizeRatioDatabase
- type StorageDealDatabase
- func (_m *StorageDealDatabase) GetPendingDeals() ([]model.StorageDeal, error)
- func (_m *StorageDealDatabase) GetStorageDeal(_a0 string) (model.StorageDeal, error)
- func (_m *StorageDealDatabase) GetStorageDealByCID(_a0 string) (model.StorageDeal, error)
- func (_m *StorageDealDatabase) InsertStorageDeal(_a0 model.StorageDeal) error
- func (_m *StorageDealDatabase) UpdateStorageDeal(_a0 string, _a1 uint32, _a2 string, _a3 string, _a4 string, _a5 int64) error
- type TranscodingDealDatabase
- type UploadDatabase
- type UserDatabase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetDatabase ¶
AssetDatabase is an autogenerated mock type for the AssetDatabase type
func (*AssetDatabase) GetAsset ¶
func (_m *AssetDatabase) GetAsset(_a0 string) (model.Asset, error)
GetAsset provides a mock function with given fields: _a0
func (*AssetDatabase) IfAssetExists ¶
func (_m *AssetDatabase) IfAssetExists(_a0 string) bool
IfAssetExists provides a mock function with given fields: _a0
func (*AssetDatabase) InsertAsset ¶
func (_m *AssetDatabase) InsertAsset(_a0 model.Asset) error
InsertAsset provides a mock function with given fields: _a0
func (*AssetDatabase) UpdateAssetReady ¶
func (_m *AssetDatabase) UpdateAssetReady(_a0 string, _a1 bool) error
UpdateAssetReady provides a mock function with given fields: _a0, _a1
func (*AssetDatabase) UpdateAssetStatus ¶
UpdateAssetStatus provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*AssetDatabase) UpdateStreamURL ¶
func (_m *AssetDatabase) UpdateStreamURL(_a0 string, _a1 string) error
UpdateStreamURL provides a mock function with given fields: _a0, _a1
func (*AssetDatabase) UpdateThumbnail ¶
func (_m *AssetDatabase) UpdateThumbnail(_a0 string, _a1 string) error
UpdateThumbnail provides a mock function with given fields: _a0, _a1
type ClientHelper ¶
ClientHelper is an autogenerated mock type for the ClientHelper type
func (*ClientHelper) Connect ¶
func (_m *ClientHelper) Connect() error
Connect provides a mock function with given fields:
func (*ClientHelper) Database ¶
func (_m *ClientHelper) Database(_a0 string) dataservice.DatabaseHelper
Database provides a mock function with given fields: _a0
func (*ClientHelper) StartSession ¶
func (_m *ClientHelper) StartSession() (mongo.Session, error)
StartSession provides a mock function with given fields:
type CollectionHelper ¶
CollectionHelper is an autogenerated mock type for the CollectionHelper type
func (*CollectionHelper) DeleteOne ¶
func (_m *CollectionHelper) DeleteOne(ctx context.Context, filter interface{}) (int64, error)
DeleteOne provides a mock function with given fields: ctx, filter
func (*CollectionHelper) FindOne ¶
func (_m *CollectionHelper) FindOne(_a0 context.Context, _a1 interface{}) dataservice.SingleResultHelper
FindOne provides a mock function with given fields: _a0, _a1
type DatabaseHelper ¶
DatabaseHelper is an autogenerated mock type for the DatabaseHelper type
func (*DatabaseHelper) Client ¶
func (_m *DatabaseHelper) Client() dataservice.ClientHelper
Client provides a mock function with given fields:
func (*DatabaseHelper) Collection ¶
func (_m *DatabaseHelper) Collection(name string) dataservice.CollectionHelper
Collection provides a mock function with given fields: name
type MeanSizeRatioDatabase ¶
MeanSizeRatioDatabase is an autogenerated mock type for the MeanSizeRatioDatabase type
func (*MeanSizeRatioDatabase) GetMeanSizeRatio ¶
func (_m *MeanSizeRatioDatabase) GetMeanSizeRatio() (model.MeanSizeRatio, error)
GetMeanSizeRatio provides a mock function with given fields:
func (*MeanSizeRatioDatabase) InsertMeanSizeRatio ¶
func (_m *MeanSizeRatioDatabase) InsertMeanSizeRatio(_a0 model.SizeRatio) error
InsertMeanSizeRatio provides a mock function with given fields: _a0
func (*MeanSizeRatioDatabase) UpdateMeanSizeRatio ¶
func (_m *MeanSizeRatioDatabase) UpdateMeanSizeRatio(_a0 float64, _a1 float64, _a2 uint64) error
UpdateMeanSizeRatio provides a mock function with given fields: _a0, _a1, _a2
type SingleResultHelper ¶
SingleResultHelper is an autogenerated mock type for the SingleResultHelper type
func (*SingleResultHelper) Decode ¶
func (_m *SingleResultHelper) Decode(v interface{}) error
Decode provides a mock function with given fields: v
type SizeRatioDatabase ¶
SizeRatioDatabase is an autogenerated mock type for the SizeRatioDatabase type
func (*SizeRatioDatabase) InsertSizeRatio ¶
func (_m *SizeRatioDatabase) InsertSizeRatio(_a0 model.SizeRatio) error
InsertSizeRatio provides a mock function with given fields: _a0
type StorageDealDatabase ¶
StorageDealDatabase is an autogenerated mock type for the StorageDealDatabase type
func (*StorageDealDatabase) GetPendingDeals ¶
func (_m *StorageDealDatabase) GetPendingDeals() ([]model.StorageDeal, error)
GetPendingDeals provides a mock function with given fields:
func (*StorageDealDatabase) GetStorageDeal ¶
func (_m *StorageDealDatabase) GetStorageDeal(_a0 string) (model.StorageDeal, error)
GetStorageDeal provides a mock function with given fields: _a0
func (*StorageDealDatabase) GetStorageDealByCID ¶
func (_m *StorageDealDatabase) GetStorageDealByCID(_a0 string) (model.StorageDeal, error)
GetStorageDealByCID provides a mock function with given fields: _a0
func (*StorageDealDatabase) InsertStorageDeal ¶
func (_m *StorageDealDatabase) InsertStorageDeal(_a0 model.StorageDeal) error
InsertStorageDeal provides a mock function with given fields: _a0
func (*StorageDealDatabase) UpdateStorageDeal ¶
func (_m *StorageDealDatabase) UpdateStorageDeal(_a0 string, _a1 uint32, _a2 string, _a3 string, _a4 string, _a5 int64) error
UpdateStorageDeal provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5
type TranscodingDealDatabase ¶
TranscodingDealDatabase is an autogenerated mock type for the TranscodingDealDatabase type
func (*TranscodingDealDatabase) GetTranscodingDeal ¶
func (_m *TranscodingDealDatabase) GetTranscodingDeal(_a0 string) (model.TranscodingDeal, error)
GetTranscodingDeal provides a mock function with given fields: _a0
func (*TranscodingDealDatabase) InsertTranscodingDeal ¶
func (_m *TranscodingDealDatabase) InsertTranscodingDeal(_a0 model.TranscodingDeal) error
InsertTranscodingDeal provides a mock function with given fields: _a0
type UploadDatabase ¶
UploadDatabase is an autogenerated mock type for the UploadDatabase type
func (*UploadDatabase) GetUpload ¶
func (_m *UploadDatabase) GetUpload(_a0 string) (model.Upload, error)
GetUpload provides a mock function with given fields: _a0
func (*UploadDatabase) IfUploadExists ¶
func (_m *UploadDatabase) IfUploadExists(_a0 string) bool
IfUploadExists provides a mock function with given fields: _a0
func (*UploadDatabase) InsertUpload ¶
func (_m *UploadDatabase) InsertUpload(_a0 model.Upload) error
InsertUpload provides a mock function with given fields: _a0
func (*UploadDatabase) UpdateUploadStatus ¶
func (_m *UploadDatabase) UpdateUploadStatus(_a0 string, _a1 bool) error
UpdateUploadStatus provides a mock function with given fields: _a0, _a1
type UserDatabase ¶
UserDatabase is an autogenerated mock type for the UserDatabase type
func (*UserDatabase) IfUserExists ¶
func (_m *UserDatabase) IfUserExists(_a0 string) bool
IfUserExists provides a mock function with given fields: _a0
func (*UserDatabase) IncrementUserAssetCount ¶
func (_m *UserDatabase) IncrementUserAssetCount(_a0 string) error
IncrementUserAssetCount provides a mock function with given fields: _a0