Documentation ¶
Index ¶
- type FakeStarService
- func (f *FakeStarService) Add(ctx context.Context, cmd *star.StarDashboardCommand) error
- func (f *FakeStarService) Delete(ctx context.Context, cmd *star.UnstarDashboardCommand) error
- func (f *FakeStarService) DeleteByUser(ctx context.Context, userID int64) error
- func (f *FakeStarService) GetByUser(ctx context.Context, query *star.GetUserStarsQuery) (*star.GetUserStarsResult, error)
- func (f *FakeStarService) IsStarredByUser(ctx context.Context, query *star.IsStarredByUserQuery) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeStarService ¶
type FakeStarService struct { ExpectedStars *star.Star ExpectedError error ExpectedUserStars *star.GetUserStarsResult }
func NewStarServiceFake ¶
func NewStarServiceFake() *FakeStarService
func (*FakeStarService) Add ¶
func (f *FakeStarService) Add(ctx context.Context, cmd *star.StarDashboardCommand) error
func (*FakeStarService) Delete ¶
func (f *FakeStarService) Delete(ctx context.Context, cmd *star.UnstarDashboardCommand) error
func (*FakeStarService) DeleteByUser ¶
func (f *FakeStarService) DeleteByUser(ctx context.Context, userID int64) error
func (*FakeStarService) GetByUser ¶
func (f *FakeStarService) GetByUser(ctx context.Context, query *star.GetUserStarsQuery) (*star.GetUserStarsResult, error)
func (*FakeStarService) IsStarredByUser ¶
func (f *FakeStarService) IsStarredByUser(ctx context.Context, query *star.IsStarredByUserQuery) (bool, error)
Click to show internal directories.
Click to hide internal directories.