Null-DRM-Official/apps/pkg/modhost/protocol.go
404errordeveloper 2e43e6c3fa
All checks were successful
release / build-and-upload (push) Successful in 6m21s
Add ITVX module, transparent mitm_hosts, and DM Telegram announces.
Wire module mitm_hosts into StartTransparent for ITVX capture, ship the
itv provider stub with Live-list autoplay, refresh the README, and send
Forgejo release announces to private chat 7314901602.
2026-10-09 17:35:53 +02:00

34 lines
1.4 KiB
Go

// Package modhost discovers, builds, and runs external provider modules that
// live under modules/<name>/ (Go source + module.yaml), outside drm.exe.
package modhost
import "drmdecryption/capture"
// ProtocolVersion is bumped when describe/launch/autoplay CLI contract changes.
const ProtocolVersion = 1
// Channel is one live target advertised by a module.
type Channel struct {
ID string `json:"id"`
Label string `json:"label"`
}
// Describe is the JSON printed by `module-bin describe`.
type Describe struct {
Protocol int `json:"protocol"`
Name string `json:"name"`
Package string `json:"package"`
LicenseURL string `json:"license_url,omitempty"`
KeyMode string `json:"key_mode"`
ProxyBin string `json:"proxy_bin,omitempty"`
CAHash string `json:"ca_hash,omitempty"`
TransparentMITM bool `json:"transparent_mitm"`
MitmHosts []string `json:"mitm_hosts,omitempty"`
Rewriter string `json:"rewriter,omitempty"`
Channels []Channel `json:"channels"`
Require []string `json:"require,omitempty"`
Score capture.ScoreCfg `json:"score,omitempty"`
HasCatalog bool `json:"has_catalog"`
ValuesPath string `json:"values_path,omitempty"`
ValuesLoaded bool `json:"values_loaded"`
}