OwnableMain
*v0.OwnableOwnableMain 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.
- OID
- 0169a8…2303:4
OwnableMain details
RemoveTelescope
func(pkgPath string)RemoveTelescope allows the admin to remove a telescope from the network. pkgPath is the telescope realm's package path (the registry key).
- OID
- 0169a8…2303:6
RemoveTelescope details
ClearAllTelescopes
func()ClearAllTelescopes removes all telescopes (emergency use only)
- OID
- 0169a8…2303:8
ClearAllTelescopes details
ClearCaptures
func()ClearCaptures clears the recent captures feed
- OID
- 0169a8…2303:9
ClearCaptures details
RemoveCapture
func(index int)RemoveCapture removes a single capture by its position in the newest-first feed (0 = most recent), for moderating an individual entry.
- OID
- 0169a8…2303:10
RemoveCapture details
assertAdmin
func()assertAdmin panics unless the calling EOA is the network admin. These are crossing functions, so cur.Previous() is the statically-scoped immediate caller and the AssertOwnedBy check is sound — no chain/runtime/unsafe needed.
- OID
- 0169a8…2303:11
assertAdmin details
maxRecentCaptures
untyped bigintmaxRecentCaptures is the number of captures kept in the network-wide feed.
Value
(50 <untyped> bigint)
telescopes
*v0.Tree- OID
- 0169a8…2303:13
telescopes details
recentCaptures
*v1.CaptureFeed- OID
- 0169a8…2303:16
recentCaptures details
Register
func(cfg v1.TelescopeConfig)Register registers a telescope realm in the NightSky network. Call from your realm's init() function: nightsky.Register(cross(cur), config)
- OID
- 0169a8…2303:20
Register details
UpdateTelescopeStatus
func(status string)UpdateTelescopeStatus allows a registered telescope realm to update its status in the registry. Call from your realm: nightsky.UpdateTelescopeStatus(cross(cur), "online")
- OID
- 0169a8…2303:22
UpdateTelescopeStatus details
SubmitCapture
func(imageURL string, targetRA float64, 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)
- OID
- 0169a8…2303:23
SubmitCapture details
UnregisterTelescope
func()UnregisterTelescope removes a telescope realm from the network. Call from your realm: nightsky.UnregisterTelescope(cross(cur))
- OID
- 0169a8…2303:24
UnregisterTelescope details
mustGetTelescope
func(pkgPath string) v1.TelescopeConfigmustGetTelescope returns the config for pkgPath or panics if not registered.
- OID
- 0169a8…2303:25
mustGetTelescope details
GetTelescopeCount
func() intGetTelescopeCount returns the number of registered telescopes
- OID
- 0169a8…2303:26
GetTelescopeCount details
GetOnlineTelescopeCount
func() intGetOnlineTelescopeCount returns the number of online telescopes
- OID
- 0169a8…2303:27
GetOnlineTelescopeCount details
usernameOrAddressLink
func(addr string) string- OID
- 0169a8…2303:28
usernameOrAddressLink details
Render
func(path string) string- OID
- 0169a8…2303:29
Render details
renderMainPage
func() string- OID
- 0169a8…2303:30
renderMainPage details
renderTelescopeList
func() string- OID
- 0169a8…2303:31
renderTelescopeList details
renderRecentCaptures
func() string- OID
- 0169a8…2303:32
renderRecentCaptures details
renderTelescopeMap
func() string- OID
- 0169a8…2303:33