Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ModuleName = "password"
Functions ¶
This section is empty.
Types ¶
type InstalledUserPassword ¶
type InstalledUserPassword struct {
*UserPassword
UserSystem *usersystem.UserSystem
}
func MustNewAndInstallTo ¶
func MustNewAndInstallTo(s *usersystem.UserSystem) *InstalledUserPassword
func NewInstalledUserPassword ¶
func NewInstalledUserPassword() *InstalledUserPassword
type Service ¶
type Service interface {
MustVerifyPassword(uid string, password string) bool
//PasswordChangeable return password changeable
PasswordChangeable() bool
//UpdatePassword update user password
MustUpdatePassword(uid string, password string)
//Start start service
Start() error
//Stop stop service
Stop() error
//Purge purge user data cache
Purge(string) error
}
type UserPassword ¶
type UserPassword struct {
herbsystem.NopModule
Service
}
func MustGetModule ¶
func MustGetModule(s *usersystem.UserSystem) *UserPassword
func New ¶
func New() *UserPassword
func (*UserPassword) InstallProcess ¶
func (s *UserPassword) InstallProcess(ctx context.Context, system herbsystem.System, next func(context.Context, herbsystem.System))
func (*UserPassword) ModuleName ¶
func (s *UserPassword) ModuleName() string
func (*UserPassword) StartService ¶
func (s *UserPassword) StartService() error
func (*UserPassword) StopService ¶
func (s *UserPassword) StopService() error
Click to show internal directories.
Click to hide internal directories.