Documentation
¶
Index ¶
Constants ¶
View Source
const (
DiscoverPort = 65001
)
Variables ¶
This section is empty.
Functions ¶
func BuildDiscoverResponseFrame ¶
func BuildDiscoverResponseFrame(resp DiscoverResponse) ([]byte, error)
Types ¶
type Config ¶
type Config struct {
ListenAddr string
DeviceID string
DeviceAuth string
TunerCount int
HTTPAddr string
LegacyHTTPAddr string
Logger *slog.Logger
}
Config controls the UDP discovery responder.
type DiscoverQuery ¶
DiscoverQuery captures request filters from a discovery query.
func ParseDiscoverRequest ¶
func ParseDiscoverRequest(frame []byte) (DiscoverQuery, error)
func (DiscoverQuery) WantsDeviceID ¶
func (q DiscoverQuery) WantsDeviceID(deviceID uint32) bool
func (DiscoverQuery) WantsTuner ¶
func (q DiscoverQuery) WantsTuner() bool
type DiscoverResponse ¶
type DiscoverResponse struct {
DeviceID uint32
TunerCount uint8
BaseURL string
LineupURL string
DeviceAuth string
}
DiscoverResponse controls fields emitted by a discovery reply packet.
Click to show internal directories.
Click to hide internal directories.