Documentation ¶
Index ¶
- Variables
- func NextId() int64
- type InMemory
- func (db *InMemory) ChangePassword(username string, password []byte) (int64, error)
- func (db *InMemory) Close() error
- func (db *InMemory) CreateAccountPasswordSession(token string, username string, created time.Time) (int64, error)
- func (db *InMemory) CreateAccountRecoverySession(token string, created time.Time) (int64, error)
- func (db *InMemory) CreateSignInSession(token string, username string, authenticated bool, created time.Time) (int64, error)
- func (db *InMemory) CreateSignUpSession(token string, created time.Time) (int64, error)
- func (db *InMemory) CreateUser(email, username string, password []byte, created time.Time) (int64, error)
- func (db *InMemory) DeactivateUser(username string, deleted time.Time) (int64, error)
- func (db *InMemory) IsEmailVerified(email string) (bool, error)
- func (db *InMemory) Ping() error
- func (db *InMemory) SelectAccountPasswordSession(token string) (string, string, time.Time, error)
- func (db *InMemory) SelectAccountRecoverySession(token string) (string, string, string, string, time.Time, error)
- func (db *InMemory) SelectSignInSession(token string) (string, string, time.Time, bool, error)
- func (db *InMemory) SelectSignUpSession(token string) (string, string, string, string, string, time.Time, error)
- func (db *InMemory) SelectUser(username string) (int64, string, []byte, time.Time, error)
- func (db *InMemory) SelectUsernameByEmail(email string) (string, error)
- func (db *InMemory) SetEmailVerified(email string, verified bool) (int64, error)
- func (db *InMemory) UpdateAccountPasswordSessionError(token, errmsg string) (int64, error)
- func (db *InMemory) UpdateAccountRecoverySessionChallenge(token, challenge string) (int64, error)
- func (db *InMemory) UpdateAccountRecoverySessionEmail(token, email string) (int64, error)
- func (db *InMemory) UpdateAccountRecoverySessionError(token, errmsg string) (int64, error)
- func (db *InMemory) UpdateAccountRecoverySessionUsername(token, username string) (int64, error)
- func (db *InMemory) UpdateSignInSessionAuthenticated(token string, authenticated bool) (int64, error)
- func (db *InMemory) UpdateSignInSessionError(token, errmsg string) (int64, error)
- func (db *InMemory) UpdateSignInSessionUsername(token, username string) (int64, error)
- func (db *InMemory) UpdateSignUpSessionChallenge(token, challenge string) (int64, error)
- func (db *InMemory) UpdateSignUpSessionError(token string, errmsg string) (int64, error)
- func (db *InMemory) UpdateSignUpSessionIdentity(token, email, username string) (int64, error)
- func (db *InMemory) UpdateSignUpSessionReferrer(token, referrer string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoSuchRecord = errors.New("No Such Record")
)
Functions ¶
Types ¶
type InMemory ¶
type InMemory struct { sync.RWMutex AccountId map[string]int64 AccountEmail map[string]string AccountUsername map[string]string AccountPassword map[string][]byte AccountVerified map[string]bool AccountCreated map[string]time.Time AccountDeleted map[string]time.Time SignupToken map[string]bool SignupCreated map[string]time.Time SignupEmail map[string]string SignupUsername map[string]string SignupReferrer map[string]string SignupChallenge map[string]string SignupError map[string]string SigninToken map[string]bool SigninCreated map[string]time.Time SigninUsername map[string]string SigninAuth map[string]bool SigninError map[string]string ResetToken map[string]bool ResetCreated map[string]time.Time ResetUsername map[string]string ResetError map[string]string RecoveryToken map[string]bool RecoveryCreated map[string]time.Time RecoveryEmail map[string]string RecoveryUsername map[string]string RecoveryChallenge map[string]string RecoveryError map[string]string }
func NewInMemory ¶
func NewInMemory() *InMemory
func (*InMemory) ChangePassword ¶
func (*InMemory) CreateAccountPasswordSession ¶
func (*InMemory) CreateAccountRecoverySession ¶
func (*InMemory) CreateSignInSession ¶
func (*InMemory) CreateSignUpSession ¶
func (*InMemory) CreateUser ¶
func (*InMemory) DeactivateUser ¶ added in v0.0.16
func (*InMemory) SelectAccountPasswordSession ¶
func (*InMemory) SelectAccountRecoverySession ¶
func (*InMemory) SelectSignInSession ¶
func (*InMemory) SelectSignUpSession ¶
func (*InMemory) SelectUser ¶
func (*InMemory) SelectUsernameByEmail ¶ added in v0.0.8
func (*InMemory) SetEmailVerified ¶
func (*InMemory) UpdateAccountPasswordSessionError ¶
func (*InMemory) UpdateAccountRecoverySessionChallenge ¶
func (*InMemory) UpdateAccountRecoverySessionEmail ¶
func (*InMemory) UpdateAccountRecoverySessionError ¶
func (*InMemory) UpdateAccountRecoverySessionUsername ¶
func (*InMemory) UpdateSignInSessionAuthenticated ¶
func (*InMemory) UpdateSignInSessionError ¶
func (*InMemory) UpdateSignInSessionUsername ¶
func (*InMemory) UpdateSignUpSessionChallenge ¶
func (*InMemory) UpdateSignUpSessionError ¶
func (*InMemory) UpdateSignUpSessionIdentity ¶
Click to show internal directories.
Click to hide internal directories.