Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStep ¶
func AddStep(w http.ResponseWriter, r *http.Request)
AddStep handles POST requests to add a new step
func GetStreamInfo ¶
func GetStreamInfo(w http.ResponseWriter, r *http.Request)
GetStreamInfo handles GET requests for stream information
func UpdateStepStatus ¶
func UpdateStepStatus(w http.ResponseWriter, r *http.Request)
UpdateStepStatus handles POST requests to update a step's status
func UpdateStreamInfo ¶
func UpdateStreamInfo(w http.ResponseWriter, r *http.Request)
UpdateStreamInfo handles POST requests to update stream information
Types ¶
type Response ¶
type Response struct { Success bool `json:"success"` Message string `json:"message,omitempty"` Data interface{} `json:"data,omitempty"` }
Response is a generic API response structure
type StreamInfoResponse ¶
type StreamInfoResponse struct { models.StreamInfo CompletedSteps []models.Step `json:"completedSteps"` ActiveStep *models.Step `json:"activeStep"` UpcomingSteps []models.Step `json:"upcomingSteps"` }
StreamInfoResponse combines stream info and steps
Click to show internal directories.
Click to hide internal directories.