Versions in this module Expand all Collapse all v0 v0.3.0 Aug 26, 2026 Changes in this version + type DeviceAuthorizationStore struct + func NewDeviceAuthorizationStore() *DeviceAuthorizationStore + func (s *DeviceAuthorizationStore) CreateDeviceAuthorization(_ context.Context, d *store.DeviceAuthorization) error + func (s *DeviceAuthorizationStore) DeleteDeviceAuthorization(_ context.Context, id string) error + func (s *DeviceAuthorizationStore) GetDeviceAuthorizationByDeviceCodeHash(_ context.Context, hash string) (*store.DeviceAuthorization, error) + func (s *DeviceAuthorizationStore) GetDeviceAuthorizationByUserCode(_ context.Context, userCode string) (*store.DeviceAuthorization, error) + func (s *DeviceAuthorizationStore) UpdateDeviceAuthorization(_ context.Context, d *store.DeviceAuthorization) error + type EmailVerificationStore struct + func NewEmailVerificationStore() *EmailVerificationStore + func (s *EmailVerificationStore) CreateEmailVerificationToken(_ context.Context, t *store.EmailVerificationToken) error + func (s *EmailVerificationStore) DeleteUserEmailVerificationTokens(_ context.Context, userID string) error + func (s *EmailVerificationStore) GetEmailVerificationTokenByHash(_ context.Context, hash string) (*store.EmailVerificationToken, error) + func (s *EmailVerificationStore) MarkEmailVerificationTokenUsed(_ context.Context, id string) error + type InvitationStore struct + func NewInvitationStore() *InvitationStore + func (s *InvitationStore) CreateInvitation(_ context.Context, i *store.Invitation) error + func (s *InvitationStore) GetInvitation(_ context.Context, id string) (*store.Invitation, error) + func (s *InvitationStore) GetInvitationByTokenHash(_ context.Context, hash string) (*store.Invitation, error) + func (s *InvitationStore) ListInvitationsByTeam(_ context.Context, teamID string) ([]*store.Invitation, error) + func (s *InvitationStore) UpdateInvitation(_ context.Context, i *store.Invitation) error + type LockoutStore struct + func NewLockoutStore() *LockoutStore + func (s *LockoutStore) ClearFailedLoginAttempts(_ context.Context, email string) error + func (s *LockoutStore) CountRecentFailedLoginAttempts(_ context.Context, email string, since time.Time) (int, error) + func (s *LockoutStore) IsAccountLocked(_ context.Context, userID string) (bool, error) + func (s *LockoutStore) LockAccount(_ context.Context, userID string) error + func (s *LockoutStore) RecordFailedLoginAttempt(_ context.Context, a *store.FailedLoginAttempt) error + func (s *LockoutStore) UnlockAccount(_ context.Context, userID string) error + type MemberStore struct + func NewMemberStore() *MemberStore + func (s *MemberStore) CreateMember(_ context.Context, m *store.Member) error + func (s *MemberStore) DeleteMember(_ context.Context, id string) error + func (s *MemberStore) GetMember(_ context.Context, id string) (*store.Member, error) + func (s *MemberStore) GetMemberByUserAndTeam(_ context.Context, userID, teamID string) (*store.Member, error) + func (s *MemberStore) ListMembersByTeam(_ context.Context, teamID string) ([]*store.Member, error) + func (s *MemberStore) ListMembershipsByUser(_ context.Context, userID string) ([]*store.Member, error) + func (s *MemberStore) UpdateMember(_ context.Context, m *store.Member) error + type PasswordResetStore struct + func NewPasswordResetStore() *PasswordResetStore + func (s *PasswordResetStore) CreatePasswordResetToken(_ context.Context, t *store.PasswordResetToken) error + func (s *PasswordResetStore) DeleteUserPasswordResetTokens(_ context.Context, userID string) error + func (s *PasswordResetStore) GetPasswordResetTokenByHash(_ context.Context, hash string) (*store.PasswordResetToken, error) + func (s *PasswordResetStore) MarkPasswordResetTokenUsed(_ context.Context, id string) error + type PendingTwoFactorStore struct + func NewPendingTwoFactorStore() *PendingTwoFactorStore + func (s *PendingTwoFactorStore) CreatePendingTwoFactorSession(_ context.Context, sess *store.PendingTwoFactorSession) error + func (s *PendingTwoFactorStore) DeletePendingTwoFactorSession(_ context.Context, id string) error + func (s *PendingTwoFactorStore) GetPendingTwoFactorSessionByHash(_ context.Context, hash string) (*store.PendingTwoFactorSession, error) + type PersonalAccessTokenStore struct + func NewPersonalAccessTokenStore() *PersonalAccessTokenStore + func (s *PersonalAccessTokenStore) CreatePersonalAccessToken(_ context.Context, t *store.PersonalAccessToken) error + func (s *PersonalAccessTokenStore) GetPersonalAccessToken(_ context.Context, id string) (*store.PersonalAccessToken, error) + func (s *PersonalAccessTokenStore) GetPersonalAccessTokenByHash(_ context.Context, hash string) (*store.PersonalAccessToken, error) + func (s *PersonalAccessTokenStore) ListPersonalAccessTokensByUser(_ context.Context, userID string) ([]*store.PersonalAccessToken, error) + func (s *PersonalAccessTokenStore) UpdatePersonalAccessToken(_ context.Context, t *store.PersonalAccessToken) error + type RefreshTokenStore struct + func NewRefreshTokenStore() *RefreshTokenStore + func (s *RefreshTokenStore) CreateRefreshToken(_ context.Context, t *store.RefreshToken) error + func (s *RefreshTokenStore) GetRefreshTokenByHash(_ context.Context, hash string) (*store.RefreshToken, error) + func (s *RefreshTokenStore) ListActiveRefreshTokens(_ context.Context, userID string) ([]*store.RefreshToken, error) + func (s *RefreshTokenStore) RevokeAllUserRefreshTokens(_ context.Context, userID string) error + func (s *RefreshTokenStore) RevokeRefreshToken(_ context.Context, id string) error + type SuperuserRefreshTokenStore struct + func NewSuperuserRefreshTokenStore() *SuperuserRefreshTokenStore + func (s *SuperuserRefreshTokenStore) CreateSuperuserRefreshToken(_ context.Context, t *store.SuperuserRefreshToken) error + func (s *SuperuserRefreshTokenStore) GetSuperuserRefreshTokenByHash(_ context.Context, hash string) (*store.SuperuserRefreshToken, error) + func (s *SuperuserRefreshTokenStore) RevokeAllSuperuserRefreshTokens(_ context.Context, superuserID string) error + func (s *SuperuserRefreshTokenStore) RevokeSuperuserRefreshToken(_ context.Context, id string) error + type SuperuserStore struct + func NewSuperuserStore() *SuperuserStore + func (s *SuperuserStore) CountSuperusers(_ context.Context) (int, error) + func (s *SuperuserStore) CreateSuperuser(_ context.Context, su *store.Superuser) error + func (s *SuperuserStore) GetSuperuserByEmail(_ context.Context, email string) (*store.Superuser, error) + func (s *SuperuserStore) GetSuperuserByID(_ context.Context, id string) (*store.Superuser, error) + func (s *SuperuserStore) ListSuperusers(_ context.Context) ([]*store.Superuser, error) + func (s *SuperuserStore) UpdateSuperuser(_ context.Context, su *store.Superuser) error + type TOTPStore struct + func NewTOTPStore() *TOTPStore + func (s *TOTPStore) CreateTOTPSettings(_ context.Context, t *store.TOTPSettings) error + func (s *TOTPStore) DeleteTOTPSettings(_ context.Context, userID string) error + func (s *TOTPStore) GetTOTPSettingsByUserID(_ context.Context, userID string) (*store.TOTPSettings, error) + func (s *TOTPStore) UpdateTOTPSettings(_ context.Context, t *store.TOTPSettings) error + type TeamStore struct + func NewTeamStore() *TeamStore + func (s *TeamStore) CreateTeam(_ context.Context, t *store.Team) error + func (s *TeamStore) DeleteTeam(_ context.Context, id string) error + func (s *TeamStore) GetTeam(_ context.Context, id string) (*store.Team, error) + func (s *TeamStore) GetTeamBySlug(_ context.Context, slug string) (*store.Team, error) + func (s *TeamStore) UpdateTeam(_ context.Context, t *store.Team) error + type UserStore struct + func NewUserStore() *UserStore + func (s *UserStore) CreateUser(_ context.Context, u *store.User) error + func (s *UserStore) GetUserByEmail(_ context.Context, email string) (*store.User, error) + func (s *UserStore) GetUserByID(_ context.Context, id string) (*store.User, error) + func (s *UserStore) UpdateUser(_ context.Context, u *store.User) error v0.2.0 Aug 25, 2026