Documentation
¶
Overview ¶
Package ref contains some reference lookups, implemented as singletons
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AirframeCache ¶
We build a big map, from Icao24 ADS-B Mode-S identifiers, to static data about the physical airframe that is flying. This is built up over time.
func BlankAirframeCache ¶
func BlankAirframeCache() AirframeCache
func LoadAirframeCache ¶
func LoadAirframeCache(ctx context.Context, sp singleton.SingletonProvider) (*AirframeCache, error)
func (*AirframeCache) SaveAirframeCache ¶
func (ac *AirframeCache) SaveAirframeCache(ctx context.Context, sp singleton.SingletonProvider) error
func (*AirframeCache) Set ¶
func (ac *AirframeCache) Set(af *fdb.Airframe)
func (AirframeCache) String ¶
func (ac AirframeCache) String() string
type ScheduleCache ¶
type ScheduleCache struct { LastUpdated time.Time Map map[string]*fdb.FlightSnapshot }
Keep a snapshot of the IcaoId -> Schedule mapping info in memcache.
func BlankScheduleCache ¶
func BlankScheduleCache() ScheduleCache
func LoadScheduleCache ¶
func LoadScheduleCache(ctx context.Context, sp singleton.SingletonProvider) (*ScheduleCache, error)
func (*ScheduleCache) Get ¶
func (ac *ScheduleCache) Get(id string) *fdb.FlightSnapshot
func (*ScheduleCache) SaveScheduleCache ¶
func (sc *ScheduleCache) SaveScheduleCache(ctx context.Context, sp singleton.SingletonProvider) error
func (ScheduleCache) String ¶
func (ac ScheduleCache) String() string
Click to show internal directories.
Click to hide internal directories.