Documentation ¶
Overview ¶
Package mocks contains mocks for testing purposes.
Index ¶
- type Notifier
- type Service
- func (_m *Service) ConsumeBlocking(ctx context.Context, messages interface{}) error
- func (_m *Service) CreateSubscription(ctx context.Context, token string, sub notifiers.Subscription) (string, error)
- func (_m *Service) ListSubscriptions(ctx context.Context, token string, pm notifiers.PageMetadata) (notifiers.Page, error)
- func (_m *Service) RemoveSubscription(ctx context.Context, token string, id string) error
- func (_m *Service) ViewSubscription(ctx context.Context, token string, id string) (notifiers.Subscription, error)
- type SubscriptionsRepository
- func (_m *SubscriptionsRepository) Remove(ctx context.Context, id string) error
- func (_m *SubscriptionsRepository) Retrieve(ctx context.Context, id string) (notifiers.Subscription, error)
- func (_m *SubscriptionsRepository) RetrieveAll(ctx context.Context, pm notifiers.PageMetadata) (notifiers.Page, error)
- func (_m *SubscriptionsRepository) Save(ctx context.Context, sub notifiers.Subscription) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶ added in v0.15.0
Notifier is an autogenerated mock type for the Notifier type
func NewNotifier ¶
NewNotifier creates a new instance of Notifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Service ¶ added in v0.15.0
Service is an autogenerated mock type for the Service type
func NewService ¶ added in v0.15.0
NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Service) ConsumeBlocking ¶ added in v0.15.0
ConsumeBlocking provides a mock function with given fields: ctx, messages
func (*Service) CreateSubscription ¶ added in v0.15.0
func (_m *Service) CreateSubscription(ctx context.Context, token string, sub notifiers.Subscription) (string, error)
CreateSubscription provides a mock function with given fields: ctx, token, sub
func (*Service) ListSubscriptions ¶ added in v0.15.0
func (_m *Service) ListSubscriptions(ctx context.Context, token string, pm notifiers.PageMetadata) (notifiers.Page, error)
ListSubscriptions provides a mock function with given fields: ctx, token, pm
func (*Service) RemoveSubscription ¶ added in v0.15.0
RemoveSubscription provides a mock function with given fields: ctx, token, id
func (*Service) ViewSubscription ¶ added in v0.15.0
func (_m *Service) ViewSubscription(ctx context.Context, token string, id string) (notifiers.Subscription, error)
ViewSubscription provides a mock function with given fields: ctx, token, id
type SubscriptionsRepository ¶ added in v0.15.0
SubscriptionsRepository is an autogenerated mock type for the SubscriptionsRepository type
func NewSubscriptionsRepository ¶ added in v0.15.0
func NewSubscriptionsRepository(t interface { mock.TestingT Cleanup(func()) }) *SubscriptionsRepository
NewSubscriptionsRepository creates a new instance of SubscriptionsRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SubscriptionsRepository) Remove ¶ added in v0.15.0
func (_m *SubscriptionsRepository) Remove(ctx context.Context, id string) error
Remove provides a mock function with given fields: ctx, id
func (*SubscriptionsRepository) Retrieve ¶ added in v0.15.0
func (_m *SubscriptionsRepository) Retrieve(ctx context.Context, id string) (notifiers.Subscription, error)
Retrieve provides a mock function with given fields: ctx, id
func (*SubscriptionsRepository) RetrieveAll ¶ added in v0.15.0
func (_m *SubscriptionsRepository) RetrieveAll(ctx context.Context, pm notifiers.PageMetadata) (notifiers.Page, error)
RetrieveAll provides a mock function with given fields: ctx, pm
func (*SubscriptionsRepository) Save ¶ added in v0.15.0
func (_m *SubscriptionsRepository) Save(ctx context.Context, sub notifiers.Subscription) (string, error)
Save provides a mock function with given fields: ctx, sub