Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISettingsService ¶
type ISettingsService interface { RefreshSettingsCache() error GetSettings() map[string]setting_model.Setting RegisterRefreshCallback(func(map[string]setting_model.Setting)) }
type SettingsService ¶
type SettingsService struct { LastRefresh time.Time SettingsCache map[string]setting_model.Setting RepositoriesGroup *repository.RepositoriesGroup OnRefreshCallbacks []func(map[string]setting_model.Setting) }
func DefaultSettingsService ¶
func DefaultSettingsService(repositoriesGroup *repository.RepositoriesGroup) *SettingsService
func (*SettingsService) GetSettings ¶
func (ss *SettingsService) GetSettings() map[string]setting_model.Setting
func (*SettingsService) RefreshSettingsCache ¶
func (ss *SettingsService) RefreshSettingsCache() error
func (*SettingsService) RegisterRefreshCallback ¶
func (ss *SettingsService) RegisterRefreshCallback(cb func(map[string]setting_model.Setting))
Click to show internal directories.
Click to hide internal directories.