Documentation ¶
Index ¶
- type ProgressStore
- type SessionsStore
- type SettingsStore
- type Store
- func (s *Store) CreateProgress(userId bson.ObjectId) (*progress.Progress, error)
- func (s *Store) CreateSession(userID bson.ObjectId, token string) error
- func (s *Store) CreateUser(user *models.User) error
- func (s *Store) CreateUserByAddress(address string, user *models.User) error
- func (s *Store) CreateUserSettings(userID bson.ObjectId) error
- func (s *Store) DeleteSessions(userID bson.ObjectId) error
- func (s *Store) GetProgress(userId bson.ObjectId) (*progress.Progress, error)
- func (s *Store) GetSession(token string) (*models.Session, error)
- func (s *Store) GetUser(id bson.ObjectId) (*models.User, error)
- func (s *Store) GetUserSettings(userID bson.ObjectId) (*models.Settings, error)
- func (s *Store) ListUsers() (*[]models.User, error)
- func (s *Store) SetProgress(userId bson.ObjectId, p progress.Progress) error
- func (store *Store) ShutDownStore()
- func (s *Store) UpdateUserSettings(userID bson.ObjectId, settings *models.Settings) error
- func (s *Store) UserByPublicKey(pubkey string) (*models.User, error)
- type UsersStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressStore ¶
type SessionsStore ¶
type SettingsStore ¶
type Store ¶
type Store struct { Users *mgo.Collection Sessions *mgo.Collection Settings *mgo.Collection Progress *mgo.Collection // contains filtered or unexported fields }
func (*Store) CreateProgress ¶
func (*Store) CreateSession ¶
func (*Store) CreateUser ¶
CreateUser store a user in a db
func (*Store) CreateUserByAddress ¶
CreateUserByAddress creates a user by address if not exists
func (*Store) GetProgress ¶
func (*Store) GetUserSettings ¶
func (*Store) SetProgress ¶
func (*Store) ShutDownStore ¶
func (store *Store) ShutDownStore()
func (*Store) UpdateUserSettings ¶
Click to show internal directories.
Click to hide internal directories.