Documentation ¶
Index ¶
- func NewMssqlUserRepository(db *database.Database) contract.IUserRepository
- type MssqlUserRepository
- func (ur *MssqlUserRepository) AddFriend(ctx context.Context, user *model.User, friend *model.User) error
- func (ur *MssqlUserRepository) Authenticate(ctx context.Context, credentials model.Credentials) (model.Session, *model.User, error)
- func (ur *MssqlUserRepository) CleanSessions(ctx context.Context, lifeDurationThreshold time.Duration)
- func (ur *MssqlUserRepository) GetByEmail(ctx context.Context, email string) (*model.User, error)
- func (ur *MssqlUserRepository) GetById(ctx context.Context, id model.IntId) (*model.User, error)
- func (ur *MssqlUserRepository) GetByIds(ctx context.Context, ids []model.IntId) ([]*model.User, error)
- func (ur *MssqlUserRepository) GetFriends(ctx context.Context, user *model.User) ([]*model.DisplayUserDto, error)
- func (ur *MssqlUserRepository) GetRecommendations(ctx context.Context, user *model.User) ([]*model.DisplayUserDto, error)
- func (ur *MssqlUserRepository) GetUserIdBySession(ctx context.Context, sessionId model.Session) (model.IntId, error)
- func (ur *MssqlUserRepository) Logout(ctx context.Context, sessionId model.Session) error
- func (ur *MssqlUserRepository) RemoveFriend(ctx context.Context, user *model.User, friend *model.User) error
- func (ur *MssqlUserRepository) SaveUser(ctx context.Context, user *model.User) (*model.User, error)
- func (ur *MssqlUserRepository) Search(ctx context.Context, searchDto model.SearchDto) ([]*model.DisplayUserDto, error)
- func (ur *MssqlUserRepository) SignUp(ctx context.Context, user *model.UserWithPassword) (model.Session, *model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMssqlUserRepository ¶
func NewMssqlUserRepository(db *database.Database) contract.IUserRepository
Types ¶
type MssqlUserRepository ¶
type MssqlUserRepository struct { DisableFastGenerationMode bool // contains filtered or unexported fields }
func (*MssqlUserRepository) Authenticate ¶
func (ur *MssqlUserRepository) Authenticate(ctx context.Context, credentials model.Credentials) (model.Session, *model.User, error)
func (*MssqlUserRepository) CleanSessions ¶
func (ur *MssqlUserRepository) CleanSessions(ctx context.Context, lifeDurationThreshold time.Duration)
func (*MssqlUserRepository) GetByEmail ¶
func (*MssqlUserRepository) GetFriends ¶
func (ur *MssqlUserRepository) GetFriends(ctx context.Context, user *model.User) ([]*model.DisplayUserDto, error)
func (*MssqlUserRepository) GetRecommendations ¶
func (ur *MssqlUserRepository) GetRecommendations(ctx context.Context, user *model.User) ([]*model.DisplayUserDto, error)
func (*MssqlUserRepository) GetUserIdBySession ¶
func (*MssqlUserRepository) RemoveFriend ¶
func (*MssqlUserRepository) Search ¶
func (ur *MssqlUserRepository) Search(ctx context.Context, searchDto model.SearchDto) ([]*model.DisplayUserDto, error)
Click to show internal directories.
Click to hide internal directories.