Go-based FM stereo transmitter with RDS, Windows-first and cross-platform
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

40 wiersze
1.3KB

  1. package nmos
  2. type Resource struct {
  3. ID string `json:"id"`
  4. Label string `json:"label,omitempty"`
  5. }
  6. type Sender struct {
  7. ID string `json:"id"`
  8. Label string `json:"label,omitempty"`
  9. Description string `json:"description,omitempty"`
  10. Transport string `json:"transport,omitempty"`
  11. DeviceID string `json:"device_id,omitempty"`
  12. ManifestURL string `json:"manifest_href,omitempty"`
  13. Subscription any `json:"subscription,omitempty"`
  14. InterfaceBinds []string `json:"interface_bindings,omitempty"`
  15. }
  16. type Receiver struct {
  17. ID string `json:"id"`
  18. Label string `json:"label,omitempty"`
  19. Description string `json:"description,omitempty"`
  20. DeviceID string `json:"device_id,omitempty"`
  21. Transport string `json:"transport,omitempty"`
  22. Format string `json:"format,omitempty"`
  23. }
  24. type Activation struct {
  25. Mode string `json:"mode"`
  26. RequestedTime string `json:"requested_time,omitempty"`
  27. }
  28. type StagedReceiverRequest struct {
  29. MasterEnable bool `json:"master_enable"`
  30. Activation Activation `json:"activation"`
  31. SenderID *string `json:"sender_id,omitempty"`
  32. TransportFile map[string]string `json:"transport_file,omitempty"`
  33. TransportParams []map[string]any `json:"transport_params,omitempty"`
  34. }