Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) CreateNotification(ctx context.Context, notification notifications.Notification) (notifications.Notification, error)
- func (_m *Repository) DeleteNotification(ctx context.Context, id string) error
- func (_m *Repository) ReadAllNotifications(ctx context.Context, page notifications.Page) error
- func (_m *Repository) ReadNotification(ctx context.Context, userID string, id string) error
- func (_m *Repository) RetrieveAllNotifications(ctx context.Context, page notifications.Page) (notifications.NotificationsPage, error)
- func (_m *Repository) RetrieveNotification(ctx context.Context, id string) (notifications.Notification, error)
- type Service
- func (_m *Service) CreateNotification(ctx context.Context, notification notifications.Notification) (notifications.Notification, error)
- func (_m *Service) DeleteNotification(ctx context.Context, token string, id string) error
- func (_m *Service) GetNewNotification(ctx context.Context, userID string) notifications.Notification
- func (_m *Service) IdentifyUser(ctx context.Context, token string) (string, error)
- func (_m *Service) ReadAllNotifications(ctx context.Context, token string, page notifications.Page) error
- func (_m *Service) ReadNotification(ctx context.Context, token string, id string) error
- func (_m *Service) RetrieveAllNotifications(ctx context.Context, token string, page notifications.Page) (notifications.NotificationsPage, error)
- func (_m *Service) RetrieveNotification(ctx context.Context, token string, id string) (notifications.Notification, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) CreateNotification ¶
func (_m *Repository) CreateNotification(ctx context.Context, notification notifications.Notification) (notifications.Notification, error)
CreateNotification provides a mock function with given fields: ctx, notification
func (*Repository) DeleteNotification ¶
func (_m *Repository) DeleteNotification(ctx context.Context, id string) error
DeleteNotification provides a mock function with given fields: ctx, id
func (*Repository) ReadAllNotifications ¶
func (_m *Repository) ReadAllNotifications(ctx context.Context, page notifications.Page) error
ReadAllNotifications provides a mock function with given fields: ctx, page
func (*Repository) ReadNotification ¶
ReadNotification provides a mock function with given fields: ctx, userID, id
func (*Repository) RetrieveAllNotifications ¶
func (_m *Repository) RetrieveAllNotifications(ctx context.Context, page notifications.Page) (notifications.NotificationsPage, error)
RetrieveAllNotifications provides a mock function with given fields: ctx, page
func (*Repository) RetrieveNotification ¶
func (_m *Repository) RetrieveNotification(ctx context.Context, id string) (notifications.Notification, error)
RetrieveNotification provides a mock function with given fields: ctx, id
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
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) CreateNotification ¶
func (_m *Service) CreateNotification(ctx context.Context, notification notifications.Notification) (notifications.Notification, error)
CreateNotification provides a mock function with given fields: ctx, notification
func (*Service) DeleteNotification ¶
DeleteNotification provides a mock function with given fields: ctx, token, id
func (*Service) GetNewNotification ¶
func (_m *Service) GetNewNotification(ctx context.Context, userID string) notifications.Notification
GetNewNotification provides a mock function with given fields: ctx, userID
func (*Service) IdentifyUser ¶
IdentifyUser provides a mock function with given fields: ctx, token
func (*Service) ReadAllNotifications ¶
func (_m *Service) ReadAllNotifications(ctx context.Context, token string, page notifications.Page) error
ReadAllNotifications provides a mock function with given fields: ctx, token, page
func (*Service) ReadNotification ¶
ReadNotification provides a mock function with given fields: ctx, token, id
func (*Service) RetrieveAllNotifications ¶
func (_m *Service) RetrieveAllNotifications(ctx context.Context, token string, page notifications.Page) (notifications.NotificationsPage, error)
RetrieveAllNotifications provides a mock function with given fields: ctx, token, page
func (*Service) RetrieveNotification ¶
func (_m *Service) RetrieveNotification(ctx context.Context, token string, id string) (notifications.Notification, error)
RetrieveNotification provides a mock function with given fields: ctx, token, id