Documentation
¶
Overview ¶
Package api is the HTTP + WebSocket surface of PartyCockpit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoxInfo ¶
type BoxInfo struct {
Scale float64 `json:"scale"` // shader render scale
}
BoxInfo goes to the stage with the party: defaults tuned for the box.
type PublicParty ¶
type PublicParty struct {
store.Party
JoinURL string `json:"joinUrl"`
Scene store.Scene `json:"scene"`
Clients any `json:"clients"`
// IceServers for RTCPeerConnection; empty on a LAN party (host candidates suffice).
IceServers json.RawMessage `json:"iceServers"`
// Box: stage defaults on a party box (D20); absent elsewhere.
Box *BoxInfo `json:"box,omitempty"`
}
type Server ¶
type Server struct {
Cfg config.Config
Store *store.Store
Hub *hub.Hub
Gallery *gallery.Client
DJfy *djfy.Manager
Catalog *providers.Catalog
Restyler providers.Restyler
Animator providers.Animator
Subtitles *subtitles.Client // nil = typed subtitles only
Glyphs *glyphs.Set // nil = notes in a font
Classifier providers.Classifier
Web fs.FS // built frontend (may be empty in dev)
Version string // build version, shown on the box screen
// contains filtered or unexported fields
}
type Stream ¶
type Stream struct {
ID string `json:"id"`
Name string `json:"name"`
Source string `json:"source"` // browser | mirrorbooth
Status string `json:"status"` // pending | live
Online bool `json:"online"` // the phone's streamer socket is connected
CreatedAt int64 `json:"createdAt"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.