Documentation
¶
Overview ¶
Package setting handles the management of application settings.
Index ¶
- type Manager
- func (m *Manager) Get(key string) (types.JSONText, error)
- func (m *Manager) GetAll() (models.Settings, error)
- func (m *Manager) GetAllJSON() (types.JSONText, error)
- func (m *Manager) GetAppRootURL() (string, error)
- func (m *Manager) GetByPrefix(prefix string) (types.JSONText, error)
- func (m *Manager) Update(s any) error
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles setting-related operations.
func (*Manager) GetAllJSON ¶
GetAllJSON retrieves all settings as JSON.
func (*Manager) GetAppRootURL ¶
GetAppRootURL returns the root URL of the app.
func (*Manager) GetByPrefix ¶
GetByPrefix retrieves all settings start with the given prefix.
Click to show internal directories.
Click to hide internal directories.