var OwnableMain
OwnableMain holds the network admin. Ownable is safe to export as a top-level object: its authority-mutating methods verify the caller against the stored owner, so exporting it does not grant write access.
OwnableMain holds the network admin. Ownable is safe to export as a top-level object: its authority-mutating methods verify the caller against the stored owner, so exporting it does not grant write access.
ClearAllTelescopes removes all telescopes (emergency use only)
ClearCaptures clears the recent captures feed
GetOnlineTelescopeCount returns the number of online telescopes
GetTelescopeCount returns the number of registered telescopes
Register registers a telescope realm in the NightSky network. Call from your realm's init() function:
1nightsky.Register(cross(cur), config)
RemoveCapture removes a single capture by its position in the newest-first feed (0 = most recent), for moderating an individual entry.
RemoveTelescope allows the admin to remove a telescope from the network. pkgPath is the telescope realm's package path (the registry key).
1func SubmitCapture(cur realm, imageURL string, targetRA, targetDec float64, exposure int, capturedBy string)SubmitCapture allows a registered telescope realm to add a capture to the network feed. Call from your realm: nightsky.SubmitCapture(cross(cur), imageURL, ra, dec, exposure, capturedBy)
UnregisterTelescope removes a telescope realm from the network. Call from your realm: nightsky.UnregisterTelescope(cross(cur))
UpdateTelescopeStatus allows a registered telescope realm to update its status in the registry. Call from your realm: nightsky.UpdateTelescopeStatus(cross(cur), "online")