MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / getDiscover

Function getDiscover

src/hdhr.go:70–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func getDiscover() (jsonContent []byte, err error) {
71
72 var discover Discover
73
74 discover.BaseURL = System.ServerProtocol.WEB + "://" + System.Domain
75 discover.DeviceAuth = System.AppName
76 discover.DeviceID = System.DeviceID
77 discover.FirmwareName = "bin_" + System.Version
78 discover.FirmwareVersion = System.Version
79 discover.FriendlyName = System.Name
80
81 discover.LineupURL = fmt.Sprintf("%s://%s/lineup.json", System.ServerProtocol.DVR, System.Domain)
82 discover.Manufacturer = "Golang"
83 discover.ModelNumber = System.Version
84 discover.TunerCount = Settings.Tuner
85
86 jsonContent, err = json.MarshalIndent(discover, "", " ")
87
88 return
89}
90
91func getLineupStatus() (jsonContent []byte, err error) {
92

Callers 1

IndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected