Documentation
¶
Index ¶
- type InMemoryStore
- func (s *InMemoryStore) Authenticate(ctx context.Context, email, password string) (int64, error)
- func (s *InMemoryStore) ChangePassword(ctx context.Context, id int64, oldPassword, newPassword string) error
- func (s *InMemoryStore) NewResetToken(ctx context.Context, email string) (accounts.Account, bool, error)
- func (s *InMemoryStore) SetForgottenPassword(ctx context.Context, id int64, password, resetToken string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
InMemoryStore saves accounts in program memory. This is mainly intended for testing and easier dev environment setups.
func NewMemoryStore ¶
func NewMemoryStore() *InMemoryStore
NewMemoryStore makes an empty InMemoryStore with all its variables initialized.
func (*InMemoryStore) Authenticate ¶
See the docs on interfaces in store.go
func (*InMemoryStore) ChangePassword ¶
func (s *InMemoryStore) ChangePassword(ctx context.Context, id int64, oldPassword, newPassword string) error
See the docs on interfaces in store.go
func (*InMemoryStore) NewResetToken ¶
func (s *InMemoryStore) NewResetToken(ctx context.Context, email string) (accounts.Account, bool, error)
See the docs on interfaces in store.go
func (*InMemoryStore) SetForgottenPassword ¶
func (s *InMemoryStore) SetForgottenPassword(ctx context.Context, id int64, password, resetToken string) error
See the docs on interfaces in store.go
Click to show internal directories.
Click to hide internal directories.