Documentation ¶
Index ¶
- type SubscriptionRepository
- func (r SubscriptionRepository) CourseSubscriptions(courseUUID uuid.UUID) ([]domain.Subscription, error)
- func (r SubscriptionRepository) CreateSubscription(sub *domain.Subscription) error
- func (r SubscriptionRepository) CreateSubscriptionWithoutMatrix(sub *domain.Subscription) error
- func (r SubscriptionRepository) DeleteSubscription(sub *domain.DeletedSubscription) error
- func (r SubscriptionRepository) Subscription(subscriptionUUID uuid.UUID) (domain.Subscription, error)
- func (r SubscriptionRepository) Subscriptions() ([]domain.Subscription, error)
- func (r SubscriptionRepository) UpdateSubscription(sub *domain.Subscription) error
- func (r SubscriptionRepository) UserSubscriptions(userUUID uuid.UUID) ([]domain.Subscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubscriptionRepository ¶
type SubscriptionRepository struct {
// contains filtered or unexported fields
}
func NewSubscriptionRepository ¶
func NewSubscriptionRepository(db *sqlx.DB) (SubscriptionRepository, error)
NewSubscriptionRepository creates the subscription SubscriptionRepository.
func (SubscriptionRepository) CourseSubscriptions ¶
func (r SubscriptionRepository) CourseSubscriptions(courseUUID uuid.UUID) ([]domain.Subscription, error)
func (SubscriptionRepository) CreateSubscription ¶
func (r SubscriptionRepository) CreateSubscription(sub *domain.Subscription) error
func (SubscriptionRepository) CreateSubscriptionWithoutMatrix ¶
func (r SubscriptionRepository) CreateSubscriptionWithoutMatrix(sub *domain.Subscription) error
func (SubscriptionRepository) DeleteSubscription ¶
func (r SubscriptionRepository) DeleteSubscription(sub *domain.DeletedSubscription) error
func (SubscriptionRepository) Subscription ¶
func (r SubscriptionRepository) Subscription(subscriptionUUID uuid.UUID) (domain.Subscription, error)
func (SubscriptionRepository) Subscriptions ¶
func (r SubscriptionRepository) Subscriptions() ([]domain.Subscription, error)
func (SubscriptionRepository) UpdateSubscription ¶
func (r SubscriptionRepository) UpdateSubscription(sub *domain.Subscription) error
func (SubscriptionRepository) UserSubscriptions ¶
func (r SubscriptionRepository) UserSubscriptions(userUUID uuid.UUID) ([]domain.Subscription, error)
Click to show internal directories.
Click to hide internal directories.