Documentation
¶
Index ¶
- func CreateUI()
- type Page
- type UI
- func (ui *UI) GLSGTFSLoadComputeFeeds(gtfsFeedIDs []int, purgeUpdate bool)
- func (ui *UI) GLSMobrouteRuntime()
- func (ui *UI) RenderMessageUI(gtx layout.Context, loadingMessage string) layout.Dimensions
- func (ui *UI) RenderTabbedUI(gtx layout.Context) layout.Dimensions
- func (ui *UI) Run(w *app.Window) error
- type UITab
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UI ¶
type UI struct {
GlobalState globalstate.GlobalState
Tabs []UITab
// contains filtered or unexported fields
}
func (*UI) GLSGTFSLoadComputeFeeds ¶
func (*UI) GLSMobrouteRuntime ¶
func (ui *UI) GLSMobrouteRuntime()
GLSGTFSMobrouteRuntime is a global loading service to load the MobrouteRuntime (fetches source MDB, initializes SQLite db connection).
UI is blocked via AppStageMessage until complete.
func (*UI) RenderMessageUI ¶
RenderMessageUI renders a UI which is just a full page that is displayed blocking the main UI while state is being resolved.
Used for both:
- MobrouteRuntimeInitialization (MDB CSV fetch / SQLite setup)
- GTFS fetch/load
func (*UI) RenderTabbedUI ¶
func (ui *UI) RenderTabbedUI(gtx layout.Context) layout.Dimensions
Click to show internal directories.
Click to hide internal directories.