Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSettingsUpdateMsg ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
set up a text input model that only renders if it is not viewMode based on the mode we are in, that is the column we will update in the sql database. After a successful save, we are going to go back to view mode.
type SettingsService ¶
func NewSettingsService ¶
func NewSettingsService(db *sql.DB) *SettingsService
func (*SettingsService) GetSettings ¶
func (ss *SettingsService) GetSettings() (Settings, error)
func (*SettingsService) UpdateSettings ¶
func (ss *SettingsService) UpdateSettings(newSettings Settings) (Settings, error)
type UpdateSettingsEvent ¶
type UpdateSettingsEvent struct {
Settings Settings
}
Click to show internal directories.
Click to hide internal directories.