Documentation
¶
Index ¶
- type App
- func (a *App) DefaultText() (domain.Text, error)
- func (a *App) DeleteCategory(id string) error
- func (a *App) DeleteText(id string) error
- func (a *App) GetSettings() (domain.Settings, error)
- func (a *App) ListSessions(limit int) ([]domain.TypingSession, error)
- func (a *App) SaveCategory(cat *domain.Category) error
- func (a *App) SaveSession(payload *domain.SessionPayload) error
- func (a *App) SaveText(text *domain.Text) error
- func (a *App) Shutdown(ctx context.Context)
- func (a *App) Startup(ctx context.Context) error
- func (a *App) SupportedLanguages() []domain.LanguageInfo
- func (a *App) Text(id string) (domain.Text, error)
- func (a *App) TextLibrary() (domain.TextLibrary, error)
- func (a *App) UpdateSetting(key string, value any) error
- func (a *App) UpdateText(text *domain.Text) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) DefaultText ¶
DefaultText returns the default text entry (metadata + content).
func (*App) DeleteCategory ¶
DeleteCategory removes a category entry by ID.
func (*App) DeleteText ¶
DeleteText removes a text entry by ID.
func (*App) GetSettings ¶
GetSettings returns current user settings.
func (*App) ListSessions ¶
func (a *App) ListSessions(limit int) ([]domain.TypingSession, error)
ListSessions returns recent typing sessions (newest first).
func (*App) SaveCategory ¶
SaveCategory creates a new category entry.
func (*App) SaveSession ¶
func (a *App) SaveSession(payload *domain.SessionPayload) error
SaveSession persists a completed typing session.
func (*App) SupportedLanguages ¶
func (a *App) SupportedLanguages() []domain.LanguageInfo
SupportedLanguages returns the list of supported programming languages.
func (*App) TextLibrary ¶
func (a *App) TextLibrary() (domain.TextLibrary, error)
TextLibrary returns library metadata for UI navigation.
func (*App) UpdateSetting ¶
UpdateSetting modifies a single setting by key and persists the change.
Click to show internal directories.
Click to hide internal directories.