Documentation
¶
Index ¶
- type SQLiteDB
- func (s *SQLiteDB) CleanupExpiredTokens() error
- func (s *SQLiteDB) CountActiveTokens(userID int64) (int, error)
- func (s *SQLiteDB) CreateAuditLog(log *models.AuditLog) error
- func (s *SQLiteDB) CreateToken(token *models.Token) error
- func (s *SQLiteDB) CreateUser(user *models.User) error
- func (s *SQLiteDB) GetTokenByJTI(jti string) (*models.Token, error)
- func (s *SQLiteDB) GetTokenByRefreshToken(refreshToken string, userID int64) (*models.Token, error)
- func (s *SQLiteDB) GetUserByID(id int64) (*models.User, error)
- func (s *SQLiteDB) GetUserByUsername(username string) (*models.User, error)
- func (s *SQLiteDB) GetUserSessions(userID int64) ([]models.Session, error)
- func (s *SQLiteDB) ListUsers() ([]models.User, error)
- func (s *SQLiteDB) RevokeAllUserTokens(userID int64) error
- func (s *SQLiteDB) UpdateToken(token *models.Token) error
- func (s *SQLiteDB) UpdateUser(user *models.User) error
- func (s *SQLiteDB) UpdateUserPassword(user *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLiteDB ¶
type SQLiteDB struct {
// contains filtered or unexported fields
}
func NewSQLiteDB ¶
func (*SQLiteDB) CleanupExpiredTokens ¶
func (*SQLiteDB) CountActiveTokens ¶
func (*SQLiteDB) CreateAuditLog ¶
Audit methods
func (*SQLiteDB) CreateToken ¶
Token methods
func (*SQLiteDB) GetTokenByJTI ¶
func (*SQLiteDB) GetTokenByRefreshToken ¶
func (*SQLiteDB) GetUserByUsername ¶
func (*SQLiteDB) GetUserSessions ¶
func (*SQLiteDB) RevokeAllUserTokens ¶
Click to show internal directories.
Click to hide internal directories.