Documentation
¶
Index ¶
- func ExitAppCmd(selected string) tea.Cmd
- func SaveLocationsCmd(locations map[string]string) tea.Cmd
- func SaveSelectedCmd(selected string) tea.Cmd
- type AddScreen
- type App
- type DeleteScreen
- type ExitAppMsg
- type LocationService
- type SaveLocationsMsg
- type SaveSelectedMsg
- type Screen
- type SelectScreen
- type ViewService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitAppCmd ¶
func SaveSelectedCmd ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func NewApp ¶
func NewApp(viewService ViewService, locationService *LocationService) *App
func (*App) AddLocation ¶
func (*App) ViewUserInterface ¶
func (this *App) ViewUserInterface()
type DeleteScreen ¶
type DeleteScreen struct {
// contains filtered or unexported fields
}
func NewDeleteScreen ¶
func NewDeleteScreen(locations map[string]string) DeleteScreen
func (DeleteScreen) Init ¶
func (this DeleteScreen) Init() tea.Cmd
func (DeleteScreen) View ¶
func (this DeleteScreen) View() string
type ExitAppMsg ¶
type ExitAppMsg struct {
// contains filtered or unexported fields
}
type LocationService ¶
type LocationService struct {
// contains filtered or unexported fields
}
func NewLocationService ¶
func NewLocationService() *LocationService
func (*LocationService) CurrentLocation ¶
func (this *LocationService) CurrentLocation() (string, error)
func (*LocationService) ReadSavedLocations ¶
func (this *LocationService) ReadSavedLocations() (map[string]string, error)
func (*LocationService) SaveLocations ¶
func (this *LocationService) SaveLocations(locations map[string]string) error
func (*LocationService) SaveSelectedLocation ¶
func (this *LocationService) SaveSelectedLocation(selected string) error
type SaveLocationsMsg ¶
type SaveLocationsMsg struct {
// contains filtered or unexported fields
}
type SaveSelectedMsg ¶
type SaveSelectedMsg struct {
// contains filtered or unexported fields
}
type SelectScreen ¶
type SelectScreen struct {
// contains filtered or unexported fields
}
func NewSelectScreen ¶
func NewSelectScreen(locations map[string]string) SelectScreen
func (SelectScreen) Init ¶
func (this SelectScreen) Init() tea.Cmd
func (SelectScreen) View ¶
func (this SelectScreen) View() string
type ViewService ¶
type ViewService struct {
// contains filtered or unexported fields
}
func NewViewService ¶
func NewViewService(locationService *LocationService) ViewService
func (ViewService) Init ¶
func (this ViewService) Init() tea.Cmd
func (ViewService) View ¶
func (this ViewService) View() string
Click to show internal directories.
Click to hide internal directories.