{"modulePath":"github.com/dracory/nodeadmin","version":"v0.4.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package settings\n\nPackage settings is the settings section of the node admin, modeled on flowadmin's settingsmanager (itself the taskadmin/shopadmin folder-per-controller pattern): the nodeadmin dispatch map invokes section.UI(uiConfig).SettingsManager(w, r) for ?controller=settings — no action renders the page through the UiConfig layout, ?action=load-settings and ?action=save-setting answer JSON AJAX requests in the dracory/api envelope under the same controller URL.\n\nEditable values are runtime engine overrides persisted inside the config store's \"global\\_config\" blob (the \"engine\" section next to \"env\") and applied to the live engine; startup/env-var values and server facts are reported read-only. The package never names a runner in its exported surface — the stock noderunner.WorkflowEngine is asserted structurally.\n\n## Functions\n\n```go\nfunc SeedEngineOverrides(engine any, cfg map[string]any)\n```\nSeedEngineOverrides applies persisted engine overrides (the \"engine\" section of the global-config blob) onto the engine at boot — called by nodeadmin.New so env-var/flag values remain the fallback for keys with no override. No-op for foreign engines.\n\n## Types\n\n```go\ntype Section struct {\n\t// contains filtered or unexported fields\n}\n```\nSection owns the settings surface state: the startup snapshot (taken before persisted overrides apply), the engine/store handles and the host-supplied server facts.\n\n```go\nfunc New(engine any, store nodestore.StoreInterface) *Section\n```\nNew creates the settings section. engine may be anything — the stock \\*noderunner.WorkflowEngine gets live tuning; foreign engines report an empty engine block. Startup values are snapshotted before persisted overrides apply so clearing an override restores them.\n\n```go\nfunc (s *Section) SetServerInfo(info map[string]any)\n```\nSetServerInfo installs host-supplied facts (auth enabled, ...) reported read-only by load-settings; safe to leave unset.\n\n```go\nfunc (s *Section) UI(config shared.UiConfig) UiInterface\n```\nUI creates a new settings section UI from the given config.\n\n```go\ntype UiInterface interface {\n\tSettingsManager(w http.ResponseWriter, r *http.Request)\n}\n```\nUiInterface defines the settings section's UI interface.\n\n","path":"github.com/dracory/nodeadmin/settings","name":"settings","synopsis":"Package settings is the settings section of the node admin, modeled on flowadmin's settingsmanager (itself the taskadmin/shopadmin folder-per-controller pattern): the nodeadmin dispatch map invokes section.UI(uiConfig).SettingsManager(w, r) for ?controller=settings — no action renders the page through the UiConfig layout, ?action=load-settings and ?action=save-setting answer JSON AJAX requests in the dracory/api envelope under the same controller URL.","isRedistributable":true}
