spacex

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Launch

type Launch struct {
	FlightNumber int        `json:"flight_number"`
	MissionName  string     `json:"mission_name"`
	LaunchDate   int64      `json:"launch_date_unix"`
	IsTentative  bool       `json:"tentative"`
	Rocket       Rocket     `json:"rocket"`
	LaunchSite   LaunchSite `json:"launch_site"`
	Links        Links      `json:"links"`
	Details      string     `json:"details"`
}

func NextLaunch

func NextLaunch() (*Launch, error)

type LaunchSite

type LaunchSite struct {
	Name string `json:"site_name_long"`
}
type Links struct {
	RedditLink  string `json:"reddit_campaign"`
	YouTubeLink string `json:"video_link"`
}

type Rocket

type Rocket struct {
	Name string `json:"rocket_name"`
}

type Settings

type Settings struct {
	*cfg.Common
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	view.TextWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, settings *Settings) *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

func (*Widget) Render

func (widget *Widget) Render()

Jump to

Keyboard shortcuts

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