Documentation ¶
Index ¶
- func SeedMongoDb(factory *mongodb.MongoFactory, databaseName string)
- func SeedMongoDbUsers(factory *mongodb.MongoFactory, databaseName string)
- type MongoDBUserContextAdapter
- func (u MongoDBUserContextAdapter) CleanUserEmailVerificationToken(id string) error
- func (u MongoDBUserContextAdapter) CleanUserRecoveryToken(id string) error
- func (u MongoDBUserContextAdapter) GetUser(id string) *dto.UserDTO
- func (u MongoDBUserContextAdapter) GetUserByEmail(email string) *dto.UserDTO
- func (u MongoDBUserContextAdapter) GetUserById(id string) *dto.UserDTO
- func (u MongoDBUserContextAdapter) GetUserByUsername(username string) *dto.UserDTO
- func (u MongoDBUserContextAdapter) GetUserClaimsById(id string) []dto.UserClaimDTO
- func (u MongoDBUserContextAdapter) GetUserEmailVerificationToken(id string) *string
- func (u MongoDBUserContextAdapter) GetUserRecoveryToken(id string) *string
- func (u MongoDBUserContextAdapter) GetUserRefreshToken(id string) *string
- func (u MongoDBUserContextAdapter) GetUserRolesById(id string) []dto.UserRoleDTO
- func (u MongoDBUserContextAdapter) RemoveUser(id string) bool
- func (u MongoDBUserContextAdapter) SetEmailVerificationState(id string, state bool) bool
- func (u MongoDBUserContextAdapter) UpdateUserEmailVerificationToken(id string, token string) bool
- func (u MongoDBUserContextAdapter) UpdateUserPassword(id string, password string) error
- func (u MongoDBUserContextAdapter) UpdateUserRecoveryToken(id string, token string) bool
- func (u MongoDBUserContextAdapter) UpdateUserRefreshToken(id string, token string) bool
- func (u MongoDBUserContextAdapter) UpsertUser(user dto.UserDTO) error
- func (u MongoDBUserContextAdapter) UpsertUserClaims(user dto.UserDTO) error
- func (u MongoDBUserContextAdapter) UpsertUserRoles(user dto.UserDTO) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeedMongoDb ¶
func SeedMongoDb(factory *mongodb.MongoFactory, databaseName string)
func SeedMongoDbUsers ¶
func SeedMongoDbUsers(factory *mongodb.MongoFactory, databaseName string)
Types ¶
type MongoDBUserContextAdapter ¶
type MongoDBUserContextAdapter struct {
// contains filtered or unexported fields
}
func (MongoDBUserContextAdapter) CleanUserEmailVerificationToken ¶
func (u MongoDBUserContextAdapter) CleanUserEmailVerificationToken(id string) error
TODO: Implement MongoDB CleanUserEmailVerificationToken
func (MongoDBUserContextAdapter) CleanUserRecoveryToken ¶
func (u MongoDBUserContextAdapter) CleanUserRecoveryToken(id string) error
TODO: Implement MongoDB CleanUserRecoveryToken
func (MongoDBUserContextAdapter) GetUser ¶ added in v0.0.22
func (u MongoDBUserContextAdapter) GetUser(id string) *dto.UserDTO
func (MongoDBUserContextAdapter) GetUserByEmail ¶
func (u MongoDBUserContextAdapter) GetUserByEmail(email string) *dto.UserDTO
func (MongoDBUserContextAdapter) GetUserById ¶
func (u MongoDBUserContextAdapter) GetUserById(id string) *dto.UserDTO
func (MongoDBUserContextAdapter) GetUserByUsername ¶
func (u MongoDBUserContextAdapter) GetUserByUsername(username string) *dto.UserDTO
func (MongoDBUserContextAdapter) GetUserClaimsById ¶
func (u MongoDBUserContextAdapter) GetUserClaimsById(id string) []dto.UserClaimDTO
TODO: Implement MongoDB GetUserClaimsById
func (MongoDBUserContextAdapter) GetUserEmailVerificationToken ¶
func (u MongoDBUserContextAdapter) GetUserEmailVerificationToken(id string) *string
func (MongoDBUserContextAdapter) GetUserRecoveryToken ¶
func (u MongoDBUserContextAdapter) GetUserRecoveryToken(id string) *string
TODO: Implement MongoDB GetUserRecoveryToken
func (MongoDBUserContextAdapter) GetUserRefreshToken ¶
func (u MongoDBUserContextAdapter) GetUserRefreshToken(id string) *string
func (MongoDBUserContextAdapter) GetUserRolesById ¶
func (u MongoDBUserContextAdapter) GetUserRolesById(id string) []dto.UserRoleDTO
TODO: Implement MongoDB GetUserRolesById
func (MongoDBUserContextAdapter) RemoveUser ¶
func (u MongoDBUserContextAdapter) RemoveUser(id string) bool
func (MongoDBUserContextAdapter) SetEmailVerificationState ¶
func (u MongoDBUserContextAdapter) SetEmailVerificationState(id string, state bool) bool
TODO: Implement MongoDB UpdateVerifyUserEmail
func (MongoDBUserContextAdapter) UpdateUserEmailVerificationToken ¶
func (u MongoDBUserContextAdapter) UpdateUserEmailVerificationToken(id string, token string) bool
func (MongoDBUserContextAdapter) UpdateUserPassword ¶
func (u MongoDBUserContextAdapter) UpdateUserPassword(id string, password string) error
TODO: Implement MongoDB GetUserRecoveryToken
func (MongoDBUserContextAdapter) UpdateUserRecoveryToken ¶
func (u MongoDBUserContextAdapter) UpdateUserRecoveryToken(id string, token string) bool
TODO: Implement MongoDB UpdateUserRecoverToken
func (MongoDBUserContextAdapter) UpdateUserRefreshToken ¶
func (u MongoDBUserContextAdapter) UpdateUserRefreshToken(id string, token string) bool
func (MongoDBUserContextAdapter) UpsertUser ¶
func (u MongoDBUserContextAdapter) UpsertUser(user dto.UserDTO) error
func (MongoDBUserContextAdapter) UpsertUserClaims ¶
func (u MongoDBUserContextAdapter) UpsertUserClaims(user dto.UserDTO) error
TODO: Implement MongoDB UpsertUserClaims
func (MongoDBUserContextAdapter) UpsertUserRoles ¶
func (u MongoDBUserContextAdapter) UpsertUserRoles(user dto.UserDTO) error
TODO: Implement MongoDB UpsertUserRoles
Click to show internal directories.
Click to hide internal directories.