database

package
v0.0.0-...-cd399ba Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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