Streamd v0.2.0: rename, modules panel, stable/beta channels
All checks were successful
release / build-and-upload (push) Successful in 7m5s

- Rename product/host binary to streamd (drm compat copy still shipped)
- Go module path streamd; STREAMD_* env aliases; agent UA streamd-agent
- Panel Modules store + agent pull sync (modstore / modsync)
- Rolling stable + beta download tags; README/docs channel curl blocks
- Release notes in docs/releases/v0.2.0.md attached by Forgejo Actions
This commit is contained in:
404errordeveloper 2026-10-10 15:58:26 +02:00
parent 066e018749
commit da8e1123ec
140 changed files with 2949 additions and 851 deletions

View file

@ -11,7 +11,7 @@ import (
"github.com/gorilla/websocket"
"drmdecryption/apps/agent/internal/client"
"streamd/apps/agent/internal/client"
)
// Message is one push from streamd.
@ -42,6 +42,9 @@ type Client struct {
// OnStreamChanged is called when a stream was edited, so the agent can
// re-poll instead of waiting out its interval.
OnStreamChanged func(name, reason string)
// OnModulesChanged is called when the panel uploaded/edited/deleted a
// module, so the agent can pull without waiting for the sync interval.
OnModulesChanged func(name, reason string)
stop chan struct{}
}
@ -111,7 +114,7 @@ func (c *Client) session() error {
if c.AgentID != "" {
hdr.Set("X-Agent-ID", c.AgentID)
}
hdr.Set("User-Agent", "drm-agent/"+client.Version)
hdr.Set("User-Agent", "streamd-agent/"+client.Version)
dialer := websocket.Dialer{HandshakeTimeout: 10 * time.Second}
conn, resp, err := dialer.Dial(u.String(), hdr)
if err != nil {
@ -190,6 +193,11 @@ func (c *Client) handle(msg Message) {
if c.OnStreamChanged != nil {
c.OnStreamChanged(msg.StreamName, msg.Reason)
}
case "modules_changed":
c.Log.Printf("ws: modules changed module=%s reason=%s", msg.StreamName, msg.Reason)
if c.OnModulesChanged != nil {
c.OnModulesChanged(msg.StreamName, msg.Reason)
}
}
}