burble

package
v0.0.0-...-c19ebb2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(settings *settings.Settings) *Controller

func (*Controller) ColumnCount

func (c *Controller) ColumnCount() int

func (*Controller) Loads

func (c *Controller) Loads() []*Load

func (*Controller) Refresh

func (c *Controller) Refresh() (bool, error)

Refresh retrieves new data from Burble

func (*Controller) RefreshCookies

func (c *Controller) RefreshCookies() error

RefreshCookies makes a throw-away request to get cookies from Burble so that data refreshes will work.

type ForEachJumperFunc

type ForEachJumperFunc func(j *Jumper)

type Jumper

type Jumper struct {
	ID             int64     `json:"id"`
	Name           string    `json:"name"`
	ShortName      string    `json:"short_name"`
	RigName        string    `json:"rig_name"`
	GroupName      string    `json:"group_name"`
	GroupMembers   []*Jumper `json:"group_members"`
	IsInstructor   bool      `json:"is_instructor"`
	IsTandem       bool      `json:"is_tandem"`
	IsStudent      bool      `json:"is_student"`
	IsVideographer bool      `json:"is_videographer"`
	IsOrganizer    bool      `json:"is_organizer"`
	IsTurning      bool      `json:"is_turning"`
	IsPondSwoop    bool      `json:"is_pond_swoop"`
	IsLowPull      bool      `json:"is_low_pull"`
}

func NewJumper

func NewJumper(id int64, name, shortName string) *Jumper

func (*Jumper) AddGroupMember

func (j *Jumper) AddGroupMember(member *Jumper)

func (*Jumper) ForEachGroupMember

func (j *Jumper) ForEachGroupMember(f ForEachJumperFunc)

type JumpersByName

type JumpersByName []*Jumper

func (JumpersByName) Len

func (j JumpersByName) Len() int

func (JumpersByName) Less

func (j JumpersByName) Less(a, b int) bool

func (JumpersByName) Swap

func (j JumpersByName) Swap(a, b int)

type Load

type Load struct {
	ID             int64     `json:"id"`
	AircraftName   string    `json:"aircraft_name"`
	IsFueling      bool      `json:"is_fueling"`
	IsTurning      bool      `json:"is_turning"`
	IsNoTime       bool      `json:"is_no_time"`
	SlotsAvailable int64     `json:"slots_available"`
	CallMinutes    int64     `json:"call_minutes"`
	LoadNumber     string    `json:"load_number"`
	Tandems        []*Jumper `json:"tandems"`
	Students       []*Jumper `json:"students"`
	SportJumpers   []*Jumper `json:"sport_jumpers"`
}

func (*Load) ForEachJumper

func (l *Load) ForEachJumper(f ForEachJumperFunc)

Jump to

Keyboard shortcuts

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