Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDuplicateKey = errors.New("duplicate key value violates unique constraint")
)
Functions ¶
This section is empty.
Types ¶
type RoomsStorage ¶
type RoomsStorage struct {
// contains filtered or unexported fields
}
func NewRoomsStorage ¶
func NewRoomsStorage(db *sqlx.DB) RoomsStorage
func (RoomsStorage) Create ¶
func (s RoomsStorage) Create(room *Room) error
func (RoomsStorage) ReadAll ¶
func (s RoomsStorage) ReadAll(rooms *[]Room) error
func (RoomsStorage) ReadByID ¶
func (s RoomsStorage) ReadByID(room *Room) error
type UsersStorage ¶
type UsersStorage struct {
// contains filtered or unexported fields
}
func NewUsersStorage ¶
func NewUsersStorage(db *sqlx.DB) UsersStorage
func (UsersStorage) Create ¶
func (s UsersStorage) Create(user *User) error
func (UsersStorage) ReadByEmail ¶
func (s UsersStorage) ReadByEmail(user *User) error
Click to show internal directories.
Click to hide internal directories.