Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCommand ¶
InitCommand initializes the root command of the CLI application with its subcommands and flags.
func RunCommand ¶
RunCommand initializes the logger, loads configuration, creates the core and API services, and starts the API service. It returns an error if any step fails.
Types ¶
type ContextHandler ¶
ContextHandler is a custom slog.Handler that enriches log records with application-specific attributes. It embeds a slog.Handler and adds attributes like application name and version, as well as request-specific context data.
type SearchConfig ¶
type SearchConfig struct {
IndexPath string `mapstructure:"index_path"`
}
SearchConfig holds configuration for the search engine.
Click to show internal directories.
Click to hide internal directories.