Documentation
¶
Index ¶
- type Account
- func (a *Account) Login(ctx context.Context, email, password string) (*model.User, error)
- func (a *Account) Logout(ctx context.Context, email string) error
- func (a *Account) PasswordResetToken(ctx context.Context, email string) (string, error)
- func (a *Account) Register(ctx context.Context, user *model.User) (*model.User, error)
- func (a *Account) ResetPassword(ctx context.Context, token, password string) (*model.User, error)
- func (a *Account) VerifyEmailToken(ctx context.Context, token string) (*model.User, error)
- func (a *Account) VerifyToken(ctx context.Context, token string) (string, error)
- type AccountService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account service
func NewAccount ¶
NewAccount create new account service
func (*Account) PasswordResetToken ¶
func (*Account) ResetPassword ¶
func (*Account) VerifyEmailToken ¶
type AccountService ¶
type AccountService interface {
Login(ctx context.Context, email, password string) (*model.User, error)
Logout(ctx context.Context, email string) error
Register(ctx context.Context, user *model.User) (*model.User, error)
PasswordResetToken(ctx context.Context, email string) (string, error)
VerifyToken(ctx context.Context, token string) (string, error)
VerifyEmailToken(ctx context.Context, token string) (*model.User, error)
ResetPassword(ctx context.Context, token, password string) (*model.User, error)
}
AccountService account service interface
Click to show internal directories.
Click to hide internal directories.