Documentation ¶
Index ¶
- type Database
- type SessionRecord
- type SqliteStore
- func (s *SqliteStore) ChangeUserPassword(email, password string) error
- func (s *SqliteStore) CreateSession(userId, ipAddress string) (*SessionRecord, error)
- func (s *SqliteStore) GetSession(id string) (*SessionRecord, error)
- func (s *SqliteStore) InsertUser(email, password string) error
- func (s *SqliteStore) Open() error
- func (s *SqliteStore) SelectUser(email string) (UserRecord, error)
- type UserRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Open() error InsertUser(email, password string) error SelectUser(email string) (UserRecord, error) CreateSession(userId, ipAddress string) (*SessionRecord, error) GetSession(id string) (*SessionRecord, error) }
func NewSqliteStore ¶
type SessionRecord ¶
type SqliteStore ¶
type SqliteStore struct {
// contains filtered or unexported fields
}
func (*SqliteStore) ChangeUserPassword ¶
func (s *SqliteStore) ChangeUserPassword(email, password string) error
func (*SqliteStore) CreateSession ¶
func (s *SqliteStore) CreateSession(userId, ipAddress string) (*SessionRecord, error)
func (*SqliteStore) GetSession ¶
func (s *SqliteStore) GetSession(id string) (*SessionRecord, error)
func (*SqliteStore) InsertUser ¶
func (s *SqliteStore) InsertUser(email, password string) error
func (*SqliteStore) Open ¶
func (s *SqliteStore) Open() error
func (*SqliteStore) SelectUser ¶
func (s *SqliteStore) SelectUser(email string) (UserRecord, error)
type UserRecord ¶
Click to show internal directories.
Click to hide internal directories.