mirror of
https://github.com/azaion/gps-denied-desktop.git
synced 2026-04-22 23:46:36 +00:00
initial structure implemented
docs -> _docs
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from components.flight_api import FlightAPI, FlightAPIBase
|
||||
from components.sse_event_streamer import SSEEventStreamer, SSEEventStreamerBase
|
||||
|
||||
_flight_api: FlightAPIBase | None = None
|
||||
_sse_streamer: SSEEventStreamerBase | None = None
|
||||
|
||||
|
||||
def get_flight_api() -> FlightAPIBase:
|
||||
global _flight_api
|
||||
if _flight_api is None:
|
||||
_flight_api = FlightAPI()
|
||||
return _flight_api
|
||||
|
||||
|
||||
def get_sse_streamer() -> SSEEventStreamerBase:
|
||||
global _sse_streamer
|
||||
if _sse_streamer is None:
|
||||
_sse_streamer = SSEEventStreamer()
|
||||
return _sse_streamer
|
||||
|
||||
Reference in New Issue
Block a user