Documentation
¶
Index ¶
- func NewInMemory() activity.Store
- type InMemoryStore
- func (m *InMemoryStore) GetLatestNotifications(ctx context.Context, activityFeedType activitypb.ActivityFeedType, ...) ([]*activitypb.Notification, error)
- func (m *InMemoryStore) SaveNotification(ctx context.Context, activityFeedType activitypb.ActivityFeedType, ...) (*activitypb.Notification, error)
- type NotificationsByTimestamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemory ¶
Types ¶
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
func (*InMemoryStore) GetLatestNotifications ¶
func (m *InMemoryStore) GetLatestNotifications(ctx context.Context, activityFeedType activitypb.ActivityFeedType, userID *commonpb.UserId, limit int) ([]*activitypb.Notification, error)
func (*InMemoryStore) SaveNotification ¶
func (m *InMemoryStore) SaveNotification(ctx context.Context, activityFeedType activitypb.ActivityFeedType, userID *commonpb.UserId, notification *activitypb.Notification) (*activitypb.Notification, error)
type NotificationsByTimestamp ¶
type NotificationsByTimestamp []*activitypb.Notification
func (NotificationsByTimestamp) Len ¶
func (a NotificationsByTimestamp) Len() int
func (NotificationsByTimestamp) Less ¶
func (a NotificationsByTimestamp) Less(i, j int) bool
func (NotificationsByTimestamp) Swap ¶
func (a NotificationsByTimestamp) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.