cmd

package
v0.0.0-...-a58eb07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const URL = "http://localhost:8080"

Variables

This section is empty.

Functions

func PrintDebug

func PrintDebug(aPrompt ...string)

func PrintError

func PrintError(aCode int, aPrompt string, aError ...error)

func PrintWarning

func PrintWarning(aCode int, aPrompt string, aWarning ...error)

func StreakGetResults

func StreakGetResults(aTOMLfile string)

func StreakLogin

func StreakLogin(aCredFile string) (*http.Client, error)

func StreakUpload

func StreakUpload(aTOMLfile string)

Types

type DownloadData

type DownloadData struct {
	Username  string `toml:"username"`
	Password  string `toml:"password"`
	SessionID string `toml:"sessionID"`
}

type DownloadType

type DownloadType struct {
	DownloadData map[string]DownloadData `toml:"DownloadData"`
}

type UploadData

type UploadData struct {
	Telescope        string `toml:"Telescope"`
	ObservatoryCode  string `toml:"ObservatoryCode"`
	RightAscension   string `toml:"RightAscension"`
	Declination      string `toml:"Declination"`
	JulianDate       string `toml:"JulianDate"`
	ExposureDuration string `toml:"ExposureDuration"`
	PublicView       string `toml:"PublicView"`
	AllowAITraining  string `toml:"AllowAITraining"`
	StreakType       string `toml:"StreakType"`
}

type UploadProperties

type UploadProperties struct {
	UploadData map[string]UploadData `toml:"properties"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL