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