handlers

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL