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 source realm

Variables 1

var OwnableMain

1var OwnableMain = ownable.NewWithAddress("g13kytw9mpyutwmyg5eq7arqxqcszfl6uq4p89zg")
source

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.

Functions 11

func Register

crossing Action
1func Register(cur realm, cfg nightsky.TelescopeConfig)
source

Register registers a telescope realm in the NightSky network. Call from your realm's init() function:

Example
1nightsky.Register(cross(cur), config)

func RemoveCapture

crossing Action
1func RemoveCapture(cur realm, index int)
source

RemoveCapture removes a single capture by its position in the newest-first feed (0 = most recent), for moderating an individual entry.

func RemoveTelescope

crossing Action
1func RemoveTelescope(cur realm, pkgPath string)
source

RemoveTelescope allows the admin to remove a telescope from the network. pkgPath is the telescope realm's package path (the registry key).

func SubmitCapture

crossing Action
1func SubmitCapture(cur realm, imageURL string, targetRA, targetDec float64, exposure int, capturedBy string)
source

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)

func UnregisterTelescope

crossing Action
1func UnregisterTelescope(cur realm)
source

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

func UpdateTelescopeStatus

crossing Action
1func UpdateTelescopeStatus(cur realm, status string)
source

UpdateTelescopeStatus allows a registered telescope realm to update its status in the registry. Call from your realm: nightsky.UpdateTelescopeStatus(cross(cur), "online")

Imports 9

Source Files 4