Versions in this module Expand all Collapse all v0 v0.6.0 Jun 30, 2023 Changes in this version + type StarRepository struct + func NewStarRepository(t mockConstructorTestingTNewStarRepository) *StarRepository + func (_m *StarRepository) Create(ctx context.Context, ns *namespace.Namespace, userID string, assetID string) (string, error) + func (_m *StarRepository) Delete(ctx context.Context, userID string, assetID string) error + func (_m *StarRepository) EXPECT() *StarRepository_Expecter + func (_m *StarRepository) GetAllAssetsByUserID(ctx context.Context, flt star.Filter, userID string) ([]asset.Asset, error) + func (_m *StarRepository) GetAssetByUserID(ctx context.Context, userID string, assetID string) (asset.Asset, error) + func (_m *StarRepository) GetStargazers(ctx context.Context, flt star.Filter, assetID string) ([]user.User, error) + type StarRepository_Create_Call struct + func (_c *StarRepository_Create_Call) Return(_a0 string, _a1 error) *StarRepository_Create_Call + func (_c *StarRepository_Create_Call) Run(...) *StarRepository_Create_Call + func (_c *StarRepository_Create_Call) RunAndReturn(...) *StarRepository_Create_Call + type StarRepository_Delete_Call struct + func (_c *StarRepository_Delete_Call) Return(_a0 error) *StarRepository_Delete_Call + func (_c *StarRepository_Delete_Call) Run(run func(ctx context.Context, userID string, assetID string)) *StarRepository_Delete_Call + func (_c *StarRepository_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *StarRepository_Delete_Call + type StarRepository_Expecter struct + func (_e *StarRepository_Expecter) Create(ctx interface{}, ns interface{}, userID interface{}, assetID interface{}) *StarRepository_Create_Call + func (_e *StarRepository_Expecter) Delete(ctx interface{}, userID interface{}, assetID interface{}) *StarRepository_Delete_Call + func (_e *StarRepository_Expecter) GetAllAssetsByUserID(ctx interface{}, flt interface{}, userID interface{}) *StarRepository_GetAllAssetsByUserID_Call + func (_e *StarRepository_Expecter) GetAssetByUserID(ctx interface{}, userID interface{}, assetID interface{}) *StarRepository_GetAssetByUserID_Call + func (_e *StarRepository_Expecter) GetStargazers(ctx interface{}, flt interface{}, assetID interface{}) *StarRepository_GetStargazers_Call + type StarRepository_GetAllAssetsByUserID_Call struct + func (_c *StarRepository_GetAllAssetsByUserID_Call) Return(_a0 []asset.Asset, _a1 error) *StarRepository_GetAllAssetsByUserID_Call + func (_c *StarRepository_GetAllAssetsByUserID_Call) Run(run func(ctx context.Context, flt star.Filter, userID string)) *StarRepository_GetAllAssetsByUserID_Call + func (_c *StarRepository_GetAllAssetsByUserID_Call) RunAndReturn(run func(context.Context, star.Filter, string) ([]asset.Asset, error)) *StarRepository_GetAllAssetsByUserID_Call + type StarRepository_GetAssetByUserID_Call struct + func (_c *StarRepository_GetAssetByUserID_Call) Return(_a0 asset.Asset, _a1 error) *StarRepository_GetAssetByUserID_Call + func (_c *StarRepository_GetAssetByUserID_Call) Run(run func(ctx context.Context, userID string, assetID string)) *StarRepository_GetAssetByUserID_Call + func (_c *StarRepository_GetAssetByUserID_Call) RunAndReturn(run func(context.Context, string, string) (asset.Asset, error)) *StarRepository_GetAssetByUserID_Call + type StarRepository_GetStargazers_Call struct + func (_c *StarRepository_GetStargazers_Call) Return(_a0 []user.User, _a1 error) *StarRepository_GetStargazers_Call + func (_c *StarRepository_GetStargazers_Call) Run(run func(ctx context.Context, flt star.Filter, assetID string)) *StarRepository_GetStargazers_Call + func (_c *StarRepository_GetStargazers_Call) RunAndReturn(run func(context.Context, star.Filter, string) ([]user.User, error)) *StarRepository_GetStargazers_Call