memory

package
v0.0.0-...-6b2a69b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (s *InMemoryStore) Authenticate(ctx context.Context, email, password string) (int64, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL