Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseConnection ¶
func CloseConnection()
Types ¶
type PasswordRepo ¶
type PasswordRepo interface { GetPassword(id int64) entity.Password GetPasswordByForAndUsername(forEntity, username string) entity.Password ForPasswordsListByUsername(username string) []string ExistsPasswordForEntity(forEntity, username string) bool Create(password, forEntity string, userId int64) (int64, error) DeleteByUsername(username string) error Delete(id int64) error Update(password, forEntity string, userId int64) error }
func PasswordRepository ¶
func PasswordRepository(ctx context.Context) PasswordRepo
type UserRepo ¶
type UserRepo interface { GetUser(id int64) entity.User GetUserByUsername(username string) entity.User ExistByUsername(username string) bool Create(user *entity.User) (id int64, err error) GetActive() entity.User SetActive(username string) SetNonActive(username string) ListUsersNames() map[string]bool Delete(username string) error }
func UserRepository ¶
Click to show internal directories.
Click to hide internal directories.