Documentation ¶
Index ¶
- Constants
- type Account
- type AccountEntity
- type Address
- type Administrator
- type BillingDetails
- type Business
- type BusinessEntity
- type Course
- type CourseEntity
- type Customer
- type CustomerEntity
- type Email
- type Enrollment
- type Entity
- func (entity *Entity) SetCreatedAt() error
- func (entity *Entity) SetCreatedBy(id string) error
- func (entity *Entity) SetDeletedAt() error
- func (entity *Entity) SetDeletedBy() error
- func (entity *Entity) SetID(id string) error
- func (entity *Entity) SetUpdatedAt() error
- func (entity *Entity) SetUpdatedBy() error
- type Family
- type FamilyMember
- type FamilyMemberEntity
- type Group
- type Image
- type Instructor
- type PaymentMethod
- type PhoneNumber
- type Profile
- type Role
- type Schedule
- type StripeEntity
- type StudentEntity
- type Subscription
- type UserEntity
- type Username
- type Video
Constants ¶
View Source
const EmailRegexp = "^.*$"
EmailRegexp ...
View Source
const UsernameRegexp = "*"
UsernameRegexp ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { StripeEntity Entity Email *Email `json:"email"` }
Account ...
func NewAccount ¶
func NewAccount() *Account
NewAccount creates new account, initializing id, created at, and email.
type AccountEntity ¶
type AccountEntity struct {
AccountID string `json:"account_id"`
}
AccountEntity ...
func (*AccountEntity) SetAccountID ¶
func (entity *AccountEntity) SetAccountID(accountID string)
SetAccountID ...
type Address ¶
type Address struct { City string `json:"city"` Country string `json:"country"` LineOne string `json:"line1"` LineTwo string `json:"line2"` PostalCode string `json:"postal_code"` State string `json:"state"` }
Address ...
type BillingDetails ¶
type BillingDetails struct { Entity PaymentMethod *PaymentMethod `json:"payment_method"` Address *Address `json:"address"` }
BillingDetails ...
type Business ¶
type Business struct { Entity Desc string `json:"desc"` Name string `json:"name"` Slug string `json:"slug"` }
Business ...
type BusinessEntity ¶
type BusinessEntity struct {
BusinessID string `json:"business_id"`
}
BusinessEntity ...
func (*BusinessEntity) SetBusinessID ¶
func (entity *BusinessEntity) SetBusinessID(businessID string)
SetBusinessID ...
type Course ¶
type Course struct { AccountEntity Entity Name string `json:"name"` Desc string `json:"desc"` Slug string `json:"slug" pg:",unique"` Status string `json:"status"` }
Course ...
type CourseEntity ¶
type CourseEntity struct {
CourseID string `json:"course_id"`
}
CourseEntity ...
func (*CourseEntity) SetCourseID ¶
func (entity *CourseEntity) SetCourseID(courseID string)
SetCourseID ...
type CustomerEntity ¶
type CustomerEntity struct {
CustomerID string `json:"customer_id"`
}
CustomerEntity ...
type Entity ¶
type Entity struct { ID string `json:"id" pg:",pk"` CreatedAt *time.Time `json:"created_at"` CreatedBy string `json:"created_by"` UpdatedAt *time.Time `json:"updated_at"` UpdatedBy string `json:"updated_by"` DeletedAt *time.Time `json:"deleted_at"` DeletedBy string `json:"deleted_by"` }
Entity ...
type Family ¶
type Family struct { FamilyMemberEntity StudentEntity Entity }
Family ... TODO: add various properties related to policies?
type FamilyMemberEntity ¶
type FamilyMemberEntity struct {
FamilyMemberID string `json:"family_member_id"`
}
FamilyMemberEntity ...
func (*FamilyMemberEntity) SetFamilyMemberID ¶
func (entity *FamilyMemberEntity) SetFamilyMemberID(familyMemberID string)
SetFamilyMemberID ...
type PaymentMethod ¶
type PaymentMethod struct { CustomerEntity StripeEntity Entity }
PaymentMethod ...
type Schedule ¶
type Schedule struct { CourseEntity Entity Instructors []*Instructor `json:"instructors"` StartTime *time.Time `json:"start_time"` EndTime *time.Time `json:"end_time"` }
Schedule ...
type StripeEntity ¶
type StripeEntity struct {
StripeID string `json:"stripe_id"`
}
StripeEntity ...
func (*StripeEntity) SetStripeID ¶
func (entity *StripeEntity) SetStripeID(stripeID string)
SetStripeID ...
type StudentEntity ¶
type StudentEntity struct {
StudentID *string `json:"studentId"`
}
StudentEntity ...
func (*StudentEntity) SetStudentID ¶
func (entity *StudentEntity) SetStudentID(studentID *string)
SetStudentID ...
Source Files ¶
- account.go
- account_entity.go
- address.go
- administrator.go
- billing_details.go
- business.go
- business_entity.go
- course.go
- course_entity.go
- customer.go
- customer_entity.go
- email.go
- enrollment.go
- entity.go
- family.go
- family_member.go
- family_member_entity.go
- group.go
- image.go
- instructor.go
- payment_method.go
- phone_number.go
- profile.go
- role.go
- schedule.go
- stripe_entity.go
- student_entity.go
- subscription.go
- user_entity.go
- username.go
- video.go
Click to show internal directories.
Click to hide internal directories.