Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 state

Back to all declarations

OwnableMain

*v0.Ownable

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.

Open
OID
0169a8…2303:4
OwnableMain details

Inspect pointer

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).

Open
OID
0169a8…2303:6
RemoveTelescope details

Inspect func

ClearAllTelescopes

func()

ClearAllTelescopes removes all telescopes (emergency use only)

Open
OID
0169a8…2303:8
ClearAllTelescopes details

Inspect func

ClearCaptures

func()

ClearCaptures clears the recent captures feed

Open
OID
0169a8…2303:9
ClearCaptures details

Inspect func

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.

Open
OID
0169a8…2303:10
RemoveCapture details

Inspect func

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.

Open
OID
0169a8…2303:11
assertAdmin details

Inspect func

maxRecentCaptures

untyped bigint

maxRecentCaptures is the number of captures kept in the network-wide feed.

Value

(50 <untyped> bigint)

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)

Open
OID
0169a8…2303:20
Register details

Inspect func

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")

Open
OID
0169a8…2303:22
UpdateTelescopeStatus details

Inspect func

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)

Open
OID
0169a8…2303:23
SubmitCapture details

Inspect func

UnregisterTelescope

func()

UnregisterTelescope removes a telescope realm from the network. Call from your realm: nightsky.UnregisterTelescope(cross(cur))

Open
OID
0169a8…2303:24
UnregisterTelescope details

Inspect func

mustGetTelescope

func(pkgPath string) v1.TelescopeConfig

mustGetTelescope returns the config for pkgPath or panics if not registered.

Open
OID
0169a8…2303:25
mustGetTelescope details

Inspect func

GetTelescopeCount

func() int

GetTelescopeCount returns the number of registered telescopes

Open
OID
0169a8…2303:26
GetTelescopeCount details

Inspect func

GetOnlineTelescopeCount

func() int

GetOnlineTelescopeCount returns the number of online telescopes

Open
OID
0169a8…2303:27
GetOnlineTelescopeCount details

Inspect func

renderMainPage

func() string
Open
OID
0169a8…2303:30
renderMainPage details

Inspect func

renderTelescopeList

func() string
Open
OID
0169a8…2303:31
renderTelescopeList details

Inspect func

renderRecentCaptures

func() string
Open
OID
0169a8…2303:32
renderRecentCaptures details

Inspect func

renderTelescopeMap

func() string
Open
OID
0169a8…2303:33
renderTelescopeMap details

Inspect func
OwnableMain : *v0.Ownable Inspect
RemoveTelescope : func(pkgPath string) Inspect
ClearAllTelescopes : func() Inspect
ClearCaptures : func() Inspect
RemoveCapture : func(index int) Inspect
assertAdmin : func() Inspect
maxRecentCaptures : untyped bigint =(50 <untyped> bigint)
telescopes : *v0.Tree Inspect
recentCaptures : *v1.CaptureFeed Inspect
Register : func(cfg v1.TelescopeConfig) Inspect
UpdateTelescopeStatus : func(status string) Inspect
SubmitCapture : func(imageURL string, targetRA float64, targetDec float64, exposure int, capturedBy string) Inspect
UnregisterTelescope : func() Inspect
mustGetTelescope : func(pkgPath string) v1.TelescopeConfig Inspect
GetTelescopeCount : func() int Inspect
GetOnlineTelescopeCount : func() int Inspect
Render : func(path string) string Inspect
renderMainPage : func() string Inspect
renderTelescopeList : func() string Inspect
renderRecentCaptures : func() string Inspect
renderTelescopeMap : func() string Inspect