common

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AppConfigModel is the in-memory bridge for the app config. Access it via
	// GetAppConfig / SetAppConfig to stay race-free across the startup goroutine
	// (writer) and IPC handlers (readers). Direct field access is kept for
	// legacy call sites but should migrate to the getters.
	AppConfigModel *models.AppConfig
	PromptsFS      embed.FS
)

Functions

func AssetExists added in v0.0.2

func AssetExists(path string) bool

func GetAppConfig added in v0.0.9

func GetAppConfig() *models.AppConfig

GetAppConfig returns a snapshot pointer to the current app config. Callers must not mutate the returned struct; use SetAppConfig to replace it.

func GetAssetFile added in v0.0.2

func GetAssetFile(path string) ([]byte, error)

func SetAppConfig added in v0.0.9

func SetAppConfig(cfg *models.AppConfig)

SetAppConfig replaces the current app config atomically.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL