Documentation
¶
Index ¶
- type CoursesPostgresRepository
- func (repository *CoursesPostgresRepository) GetCourseByInvitationCode(invitationCode string) (*entities.Course, error)
- func (repository *CoursesPostgresRepository) GetCourseByUUID(uuid string) (*entities.Course, error)
- func (repository *CoursesPostgresRepository) GetInvitationCode(courseUUID string) (string, error)
- func (repository *CoursesPostgresRepository) GetRandomColor() (*entities.Color, error)
- func (repository *CoursesPostgresRepository) SaveCourse(dto *dtos.CreateCourseDTO) (*entities.Course, error)
- func (repository *CoursesPostgresRepository) SaveInvitationCode(courseUUID string, invitationCode string) error
- type NanoIdInvitationCodeGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoursesPostgresRepository ¶
func GetCoursesPgRepository ¶
func GetCoursesPgRepository() *CoursesPostgresRepository
func (*CoursesPostgresRepository) GetCourseByInvitationCode ¶
func (repository *CoursesPostgresRepository) GetCourseByInvitationCode(invitationCode string) (*entities.Course, error)
func (*CoursesPostgresRepository) GetCourseByUUID ¶
func (repository *CoursesPostgresRepository) GetCourseByUUID(uuid string) (*entities.Course, error)
func (*CoursesPostgresRepository) GetInvitationCode ¶ added in v0.10.0
func (repository *CoursesPostgresRepository) GetInvitationCode(courseUUID string) (string, error)
func (*CoursesPostgresRepository) GetRandomColor ¶
func (repository *CoursesPostgresRepository) GetRandomColor() (*entities.Color, error)
Methods
func (*CoursesPostgresRepository) SaveCourse ¶
func (repository *CoursesPostgresRepository) SaveCourse(dto *dtos.CreateCourseDTO) (*entities.Course, error)
func (*CoursesPostgresRepository) SaveInvitationCode ¶ added in v0.10.0
func (repository *CoursesPostgresRepository) SaveInvitationCode(courseUUID string, invitationCode string) error
type NanoIdInvitationCodeGenerator ¶
type NanoIdInvitationCodeGenerator struct{}
func GetNanoIdInvitationCodeGenerator ¶
func GetNanoIdInvitationCodeGenerator() *NanoIdInvitationCodeGenerator
func (*NanoIdInvitationCodeGenerator) Generate ¶
func (generator *NanoIdInvitationCodeGenerator) Generate() (string, error)
Methods
Click to show internal directories.
Click to hide internal directories.