repositories

package
v0.0.0-...-a1da574 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountRepository

func NewAccountRepository(postgresCtx interfaces.PostgresContext, stripeCtx interfaces.StripeContext) interfaces.AccountRepository

NewAccountRepository ...

func NewBalanceRepository

func NewBalanceRepository(stripeCtx interfaces.StripeContext) interfaces.BalanceRepository

NewBalanceRepository ...

func NewBillingDetailsRepository

func NewBillingDetailsRepository() interfaces.BillingDetailsRepository

NewBillingDetailsRepository ...

func NewCourseRepository

func NewCourseRepository(postgresCtx interfaces.PostgresContext) interfaces.CourseRepository

NewCourseRepository ...

func NewCustomerRepository

func NewCustomerRepository(postgresContext interfaces.PostgresContext, stripeContext interfaces.StripeContext) interfaces.CustomerRepository

NewCustomerRepository ...

func NewEnrollmentRepository

func NewEnrollmentRepository() interfaces.EnrollmentRepository

NewEnrollmentRepository ...

func NewPaymentMethodRepository

func NewPaymentMethodRepository(postgresContext interfaces.PostgresContext, stripeContext interfaces.StripeContext) interfaces.PaymentMethodRepository

NewPaymentMethodRepository ...

func NewScheduleRepository

func NewScheduleRepository() interfaces.ScheduleRepository

NewScheduleRepository ...

func NewStudentRepository

func NewStudentRepository() interfaces.StudentRepository

NewStudentRepository ...

func NewUserRepository

func NewUserRepository(cognitoIdentityCtx interfaces.CognitoIdentityContext, postgresCtx interfaces.PostgresContext) interfaces.UserRepository

NewUserRepository ...

Types

type AccountRepository

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

AccountRepository ...

func (*AccountRepository) Add

Add creates a new Stripe Account, and also inserts a new account record into PostgreSQL.

func (*AccountRepository) GetByID

GetByID retrieves Account by 'id' from Stripe and updates the PostgreSQL record.

func (*AccountRepository) GetByStripeID

GetByStripeID retrieves Account by 'id' from Stripe and updates the PostgreSQL record.

func (*AccountRepository) Remove

Remove ...

func (*AccountRepository) Update

Update ...

type BalanceRepository

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

BalanceRepository ...

func (*BalanceRepository) Get

Get ...

type BillingDetailsRepository

type BillingDetailsRepository struct{}

BillingDetailsRepository ...

func (*BillingDetailsRepository) Add

Add ...

func (*BillingDetailsRepository) GetByID

GetByID ...

func (*BillingDetailsRepository) GetByPaymentMethodID

GetByPaymentMethodID ...

func (*BillingDetailsRepository) Remove

Remove ...

type CourseRepository

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

CourseRepository ...

func (*CourseRepository) Add

Add ...

func (*CourseRepository) GetByID

GetByID ...

func (*CourseRepository) GetByOrganizationID

GetByOrganizationID ...

func (*CourseRepository) Remove

Remove ...

func (*CourseRepository) Update

Update ...

type CustomerRepository

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

CustomerRepository ...

func (*CustomerRepository) Add

Add ...

func (*CustomerRepository) GetByID

GetByID ...

func (*CustomerRepository) GetByUserID

GetByUserID ...

func (*CustomerRepository) Remove

Remove ...

func (*CustomerRepository) Update

Update ...

type EnrollmentRepository

type EnrollmentRepository struct{}

EnrollmentRepository ...

func (*EnrollmentRepository) Add

Add ...

func (*EnrollmentRepository) GetByID

GetByID ...

func (*EnrollmentRepository) GetByScheduleID

GetByScheduleID ...

func (*EnrollmentRepository) GetByStudentID

GetByStudentID ...

func (*EnrollmentRepository) Remove

Remove ...

func (*EnrollmentRepository) Update

Update ...

type FamilyMemberRepository

type FamilyMemberRepository struct{}

FamilyMemberRepository ...

type InstructorRepository

type InstructorRepository struct{}

InstructorRepository ...

type PaymentMethodRepository

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

PaymentMethodRepository ...

func (*PaymentMethodRepository) Add

Add ...

func (*PaymentMethodRepository) GetByCustomerID

func (repository *PaymentMethodRepository) GetByCustomerID(customerID *string) ([]*entities.PaymentMethod, error)

GetByCustomerID ...

func (*PaymentMethodRepository) GetByID

func (repository *PaymentMethodRepository) GetByID(id *string) (*entities.PaymentMethod, error)

GetByID ...

type ScheduleRepository

type ScheduleRepository struct {
}

ScheduleRepository ...

func (*ScheduleRepository) Add

func (repository *ScheduleRepository) Add(schedule *entities.Schedule) error

Add ...

func (*ScheduleRepository) Get

func (repository *ScheduleRepository) Get() ([]*entities.Schedule, error)

Get ...

func (*ScheduleRepository) GetByID

func (repository *ScheduleRepository) GetByID(id *string) (*entities.Schedule, error)

GetByID ...

func (*ScheduleRepository) Remove

func (repository *ScheduleRepository) Remove(id *string) error

Remove ...

type StudentRepository

type StudentRepository struct{}

StudentRepository ...

type SubscriptionRepository

type SubscriptionRepository struct{}

SubscriptionRepository ..

type UserRepository

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

UserRepository ...

func (*UserRepository) Add

Add ...

func (*UserRepository) GetByID

GetByID ...

func (*UserRepository) GetByUsername

GetByUsername ...

func (*UserRepository) Remove

Remove ...

Jump to

Keyboard shortcuts

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