Documentation
¶
Index ¶
- func CheckTablesExists(db *sql.DB) (bool, error)
- func CreateDb(path string) *sql.DB
- type Store
- func (s *Store) CheckMessagesBetweenUsersExists(sender string) ([]int, error)
- func (s *Store) CheckPasswordIsCorrect(user *types.User) (bool, error)
- func (s *Store) GetPassword(user *types.User) (string, error)
- func (s *Store) GetUserByUsername(username string) (*types.User, error)
- func (s *Store) GetUserId(username string) (int, error)
- func (s *Store) GetUserMessagesBy(sender, recipient string) (string, error)
- func (s *Store) GetUsername(username string) (bool, error)
- func (s *Store) GetUsernameById(id int) (string, error)
- func (s *Store) InsertMessage(msg *types.ChatMessage) error
- func (s *Store) InsertUser(user *types.User) error
- func (s *Store) UserExists(username string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CheckMessagesBetweenUsersExists ¶
func (*Store) CheckPasswordIsCorrect ¶
func (*Store) GetUserByUsername ¶
func (*Store) GetUserMessagesBy ¶
func (*Store) InsertMessage ¶
func (s *Store) InsertMessage(msg *types.ChatMessage) error
Click to show internal directories.
Click to hide internal directories.