Documentation ¶
Index ¶
- type Character
- type DB
- func (db *DB) DeletePasswordResets(userID int) error
- func (db *DB) GetCharacter(id int) (*Character, error)
- func (db *DB) GetPasswordReset(hashedToken string) (*PasswordReset, error)
- func (db *DB) GetSession(key string) (*DjangoSession, error)
- func (db *DB) GetUser(id int) (*User, error)
- func (db *DB) GetUserByEmail(email string) (*User, error)
- func (db *DB) InsertPasswordReset(hashedToken string, userID int, ttl time.Duration) error
- func (db *DB) InsertUser(email, hashedPassword string) (int, error)
- func (db *DB) SetCharacterNotes(id int, notes string) error
- func (db *DB) UpdateUserHashedPassword(id int, hashedPassword string) error
- type DjangoSession
- type DjangoSessionData
- type PasswordReset
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) DeletePasswordResets ¶
func (*DB) GetPasswordReset ¶
func (db *DB) GetPasswordReset(hashedToken string) (*PasswordReset, error)
func (*DB) GetSession ¶
func (db *DB) GetSession(key string) (*DjangoSession, error)
func (*DB) InsertPasswordReset ¶
type DjangoSession ¶
type DjangoSession struct { SessionKey string `db:"session_key"` SessionData string `db:"session_data"` ExpireData time.Time `db:"expire_date"` }
func (*DjangoSession) Decode ¶
func (s *DjangoSession) Decode() (*DjangoSessionData, error)
type DjangoSessionData ¶
type PasswordReset ¶
Click to show internal directories.
Click to hide internal directories.