mocks

package
v0.0.0-...-dcf02bf Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetDatabase

type AssetDatabase struct {
	mock.Mock
}

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

func (_m *AssetDatabase) UpdateAssetStatus(_a0 string, _a1 int32, _a2 string, _a3 bool) error

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

type ClientHelper struct {
	mock.Mock
}

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

type CollectionHelper struct {
	mock.Mock
}

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) Find

func (_m *CollectionHelper) Find(ctx context.Context, filter interface{}) (*mongo.Cursor, error)

Find 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

func (*CollectionHelper) InsertOne

func (_m *CollectionHelper) InsertOne(_a0 context.Context, _a1 interface{}) (interface{}, error)

InsertOne provides a mock function with given fields: _a0, _a1

func (*CollectionHelper) UpdateOne

func (_m *CollectionHelper) UpdateOne(_a0 context.Context, _a1 interface{}, _a2 interface{}) (int64, error)

UpdateOne provides a mock function with given fields: _a0, _a1, _a2

type DatabaseHelper

type DatabaseHelper struct {
	mock.Mock
}

DatabaseHelper is an autogenerated mock type for the DatabaseHelper type

func (*DatabaseHelper) Client

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

type MeanSizeRatioDatabase struct {
	mock.Mock
}

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

type SingleResultHelper struct {
	mock.Mock
}

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

type SizeRatioDatabase struct {
	mock.Mock
}

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

type StorageDealDatabase struct {
	mock.Mock
}

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

type TranscodingDealDatabase struct {
	mock.Mock
}

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

type UploadDatabase struct {
	mock.Mock
}

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

type UserDatabase struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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