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 state

Back to all declarations

SubmitCommand

func(commandType string, targetRA string, targetDec string, exposure string)

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

Open
OID
020837…cab8:7
SubmitCommand details

Inspect func

GrantAccess

func(address string, durationDays int)

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

Open
OID
020837…cab8:8
GrantAccess details

Inspect func

RevokeAccess

func(address string)

RevokeAccess allows the owner to revoke access from a user.

Open
OID
020837…cab8:9
RevokeAccess details

Inspect func

GetNextCommand

func() v1.TelescopeCommand

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

Open
OID
020837…cab8:10
GetNextCommand details

Inspect func

UpdateStatus

func(status string)

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

Open
OID
020837…cab8:11
UpdateStatus details

Inspect func

RecordCapture

func(imageURL string, targetRA float64, targetDec float64, exposure int, capturedBy string)

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

Open
OID
020837…cab8:12
RecordCapture details

Inspect func

ClearCommandQueue

func()

ClearCommandQueue clears all pending commands (emergency stop).

Open
OID
020837…cab8:13
ClearCommandQueue details

Inspect func

GetCommandCount

func() int
Open
OID
020837…cab8:14
GetCommandCount details

Inspect func

GetCaptureCount

func() int
Open
OID
020837…cab8:15
GetCaptureCount details

Inspect func

GetAccessRuleCount

func() int
Open
OID
020837…cab8:16
GetAccessRuleCount details

Inspect func

GetTelescopeName

func() string
Open
OID
020837…cab8:18
GetTelescopeName details

Inspect func

GetTelescopeModel

func() string
Open
OID
020837…cab8:19
GetTelescopeModel details

Inspect func
telescope : *v1.TelescopeRealm Inspect
init.1 : func() Inspect
Render : func(path string) string Inspect
SubmitCommand : func(commandType string, targetRA string, targetDec string, exposure string) Inspect
GrantAccess : func(address string, durationDays int) Inspect
RevokeAccess : func(address string) Inspect
GetNextCommand : func() v1.TelescopeCommand Inspect
UpdateStatus : func(status string) Inspect
RecordCapture : func(imageURL string, targetRA float64, targetDec float64, exposure int, capturedBy string) Inspect
ClearCommandQueue : func() Inspect
GetCommandCount : func() int Inspect
GetCaptureCount : func() int Inspect
GetAccessRuleCount : func() int Inspect
GetStatus : func() string Inspect
GetTelescopeName : func() string Inspect
GetTelescopeModel : func() string Inspect
GetOwner : func() string Inspect