17 lines
286 B
Go
17 lines
286 B
Go
package handlers
|
|
|
|
import (
|
|
"context"
|
|
"golias/models"
|
|
)
|
|
|
|
func createRoom(ctx context.Context, req *models.RoomReq) (*models.Room, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// context
|
|
func getRoomIDFromCtx(ctx context.Context) string {
|
|
id, _ := ctx.Value(models.CtxRoomIDKey).(string)
|
|
return id
|
|
}
|