Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService interface { GetUserByUid(uid string) (account model.AccountPublic, err error) CheckForCompromisedPassword(hashedPassword string) (isCompromised bool, err error) UpdateAccountConsentByUid(uid string, consent bool) (err error) }
func NewAccountService ¶
func NewAccountService(app *firebase.App, accountRepository repository.AccountRepository) AccountService
type AssignmentService ¶
type AssignmentService interface { CreateAssignment(assignment *model.Assignment) error GetAllAssignment(author string, fromPresent bool) ([]model.Assignment, error) GetAssignmentById(assignmentId int) (model.AssignmentPublic, error) UpdateAssignment(updateAssignmentRequest *model.UpdateAssignmentRequest, id int) (*model.Assignment, error) DeleteAssignment(assignmentId int) error }
func NewAssignmentService ¶
func NewAssignmentService(assignmentRepository repository.AssignmentRepository) AssignmentService
type Tag ¶
type Tag interface { GetAllTag(author string) ([]model.Tag, error) CreateTag(tag *model.Tag) error UpdateTag(tagId int, tagUpdateRequest *model.UpdateTagRequest) (*model.Tag, error) GetTagById(tagId int) (model.TagPublic, error) DeleteTag(tagId int) error IsTagExist(tagId int) bool }
func NewTagService ¶
func NewTagService(tagRepository repository.Tag) Tag
Click to show internal directories.
Click to hide internal directories.