Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a websocket client
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub maintains the set of active clients and broadcasts messages to them
func (*Hub) BroadcastProgress ¶
func (h *Hub) BroadcastProgress(msg *ProgressMessage) error
BroadcastProgress sends a progress update to all clients
type ProgressMessage ¶
type ProgressMessage struct {
JobID string `json:"job_id"`
FileIndex int `json:"file_index"`
FilePath string `json:"file_path"`
Status string `json:"status"`
Progress float64 `json:"progress"`
Message string `json:"message"`
Error string `json:"error,omitempty"`
}
ProgressMessage represents a progress update message
Click to show internal directories.
Click to hide internal directories.