Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MemRepositoryFactory = RepositoryFactoryFunc(func() domain.NotificationRepository { return NewMemRepository() })
Functions ¶
This section is empty.
Types ¶
type MemRepository ¶
type MemRepository struct {
// contains filtered or unexported fields
}
func NewMemRepository ¶
func NewMemRepository() *MemRepository
func (*MemRepository) GetLastNotifications ¶
func (r *MemRepository) GetLastNotifications(n int) []domain.Notification
func (*MemRepository) GetNotificationCount ¶
func (r *MemRepository) GetNotificationCount() int
func (*MemRepository) GetNotifications ¶
func (r *MemRepository) GetNotifications(from, to int) []domain.Notification
func (*MemRepository) SaveNotification ¶
func (r *MemRepository) SaveNotification(notification domain.Notification)
type RepositoryFactoryFunc ¶
type RepositoryFactoryFunc func() domain.NotificationRepository
func (RepositoryFactoryFunc) GetRepository ¶
func (f RepositoryFactoryFunc) GetRepository() domain.NotificationRepository
Click to show internal directories.
Click to hide internal directories.