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

telescope source realm

Functions 15

func GetNextCommand

crossing Action
1func GetNextCommand(cur realm) ns.TelescopeCommand
source

GetNextCommand returns and removes the next command from the queue. Called by the telescope controller.

func GrantAccess

crossing Action
1func GrantAccess(cur realm, address string, durationDays int)
source

GrantAccess allows the owner to grant access to another user. durationDays: 0 = never expires

func RecordCapture

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

RecordCapture records a capture result locally and submits it to the NightSky network feed.

func RevokeAccess

crossing Action
1func RevokeAccess(cur realm, address string)
source

RevokeAccess allows the owner to revoke access from a user.

func SubmitCommand

crossing Action
1func SubmitCommand(cur realm, commandType, targetRA, targetDec, exposure string)
source

SubmitCommand allows authorized users to submit telescope commands. commandType: "capture" or "stop" targetRA: Right Ascension in hours (0-24), leave empty for stop targetDec: Declination in degrees (-90 to 90), leave empty for stop exposure: Exposure time in seconds (1-300), leave empty for stop

func UpdateStatus

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

UpdateStatus updates the telescope status locally and in the NightSky registry. Valid values: "online", "offline", "busy", "error"

Imports 4

Source Files 3