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.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server handles HDHomeRun UDP discovery requests.
func (*Server) SetDiscoveryAdvertisedTunerCount ¶
SetDiscoveryAdvertisedTunerCount updates the tuner count encoded into UDP discovery responses. Values are capped to HDHomeRun-compatible bounds [1,255].
Click to show internal directories.
Click to hide internal directories.