Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterUserService ¶
type MasterUserService interface { CreateUser(name, password string) error Login(name, password string) (entity.MasterUser, error) GetUsers(head, tail int) ([]entity.MasterUser, error) DropUser(username string, password string) error }
func NewMasterUserService ¶
func NewMasterUserService(masterUserRepository repository.MasterUserRepository) MasterUserService
type PasswordService ¶
type PasswordService interface { SetPassword(key, plainPw, description string) error GetPassword(key string) (string, error) UpdatePassword(key, plainPwForPersist, plainUserPw string) error GetAllPasswords() ([]entity.PasswordList, error) }
func NewPasswordService ¶
func NewPasswordService(userPk int, cryptoKey []byte) (PasswordService, error)
Click to show internal directories.
Click to hide internal directories.