repositories

package
v0.0.0-...-173ef52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDbNotificationHistoryRepository

type DynamoDbNotificationHistoryRepository struct {
	// contains filtered or unexported fields
}

func (*DynamoDbNotificationHistoryRepository) Exists

func (s *DynamoDbNotificationHistoryRepository) Exists(subscriptionId string, postId string) (bool, error)

func (*DynamoDbNotificationHistoryRepository) TrackNotification

func (s *DynamoDbNotificationHistoryRepository) TrackNotification(subscriptionId string, postId string, notifiedAt time.Time) error

type DynamoDbSubscriptionRepository

type DynamoDbSubscriptionRepository struct {
	// contains filtered or unexported fields
}

func (*DynamoDbSubscriptionRepository) GetSubscriptions

func (r *DynamoDbSubscriptionRepository) GetSubscriptions() ([]*models.Subscription, error)

type NotificationHistoryRepository

type NotificationHistoryRepository interface {
	Exists(subscriptionId string, postId string) (bool, error)
	TrackNotification(subscriptionId string, postId string, notifiedAt time.Time) error
}

func NewNotificationHistoryRepository

func NewNotificationHistoryRepository(config *configuration.AppConfig) NotificationHistoryRepository

type SubscriptionRepository

type SubscriptionRepository interface {
	GetSubscriptions() ([]*models.Subscription, error)
}

func NewSubscriptionRepository

func NewSubscriptionRepository(config *configuration.AppConfig) SubscriptionRepository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL