Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoRoom = errors.New("Room: no room provided") ErrDuplicateName = errors.New("Room: that room name is already taken") )
Functions ¶
This section is empty.
Types ¶
type RoomStore ¶
type RoomStore interface { GetAll() (*[]*models.Room, error) Get(id int64) (*models.Room, error) GetWithinRadius(r *models.RoomQuery) (*[]*models.Room, error) Create(*models.Room) error }
func CreateRoomStore ¶
CreateRoomStore creates the db table and holds a reference to the db connection
Click to show internal directories.
Click to hide internal directories.