user

package
v0.0.0-...-cb8f91d Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) AddFriend

func (ur *MssqlUserRepository) AddFriend(ctx context.Context, user *model.User, friend *model.User) error

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 (ur *MssqlUserRepository) GetByEmail(ctx context.Context, email string) (*model.User, error)

func (*MssqlUserRepository) GetById

func (ur *MssqlUserRepository) GetById(ctx context.Context, id model.IntId) (*model.User, error)

func (*MssqlUserRepository) GetByIds

func (ur *MssqlUserRepository) GetByIds(ctx context.Context, ids []model.IntId) ([]*model.User, error)

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 (ur *MssqlUserRepository) GetUserIdBySession(ctx context.Context, sessionId model.Session) (model.IntId, error)

func (*MssqlUserRepository) Logout

func (ur *MssqlUserRepository) Logout(ctx context.Context, sessionId model.Session) error

func (*MssqlUserRepository) RemoveFriend

func (ur *MssqlUserRepository) RemoveFriend(ctx context.Context, user *model.User, friend *model.User) error

func (*MssqlUserRepository) SaveUser

func (ur *MssqlUserRepository) SaveUser(ctx context.Context, user *model.User) (*model.User, error)

func (*MssqlUserRepository) Search

func (ur *MssqlUserRepository) Search(ctx context.Context, searchDto model.SearchDto) ([]*model.DisplayUserDto, error)

func (*MssqlUserRepository) SignUp

Jump to

Keyboard shortcuts

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