Documentation ¶
Index ¶
- type RoomUsecase
- func (uc *RoomUsecase) CreateRoom(name, owner string) (*model.Room, error)
- func (uc *RoomUsecase) GetRoomByID(roomID string) (*model.Room, error)
- func (uc *RoomUsecase) HandleWebSocketConnection(w http.ResponseWriter, r *http.Request, roomID, clientName string) error
- func (uc *RoomUsecase) JoinRoom(roomID, clientName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomUsecase ¶
type RoomUsecase struct { RoomManager *model.RoomManager // contains filtered or unexported fields }
func NewRoomUsecase ¶
func NewRoomUsecase() *RoomUsecase
NewRoomUsecase creates a new RoomUsecase instance.
func (*RoomUsecase) CreateRoom ¶
func (uc *RoomUsecase) CreateRoom(name, owner string) (*model.Room, error)
CreateRoom creates a new room.
func (*RoomUsecase) GetRoomByID ¶
func (uc *RoomUsecase) GetRoomByID(roomID string) (*model.Room, error)
GetRoomByID retrieves a room by its ID.
func (*RoomUsecase) HandleWebSocketConnection ¶
func (uc *RoomUsecase) HandleWebSocketConnection(w http.ResponseWriter, r *http.Request, roomID, clientName string) error
HandleWebSocketConnection handles a WebSocket connection for a client.
func (*RoomUsecase) JoinRoom ¶
func (uc *RoomUsecase) JoinRoom(roomID, clientName string) error
JoinRoom allows a client to join a room.
Click to show internal directories.
Click to hide internal directories.