Documentation
¶
Overview ¶
Package server provides application initialization and lifecycle management.
Index ¶
- type Config
- type Server
- func (s *Server) GetAIService() ai.Client
- func (s *Server) GetAssistant() assistant.Assistant
- func (s *Server) GetConfig() config.Config
- func (s *Server) GetDatabase() *pgxpool.Pool
- func (s *Server) GetLogger() logger.Logger
- func (s *Server) GetTemporalClient() client.Client
- func (s *Server) Run(ctx context.Context) error
- func (s *Server) Shutdown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Verbose bool
DisableColors bool
DisableMemory bool
GracefulPeriod time.Duration
}
Config holds server configuration options.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server manages the application lifecycle and dependencies.
func (*Server) GetAIService ¶
GetAIService returns the AI service.
func (*Server) GetAssistant ¶
GetAssistant returns the assistant instance.
func (*Server) GetDatabase ¶
GetDatabase returns the database connection pool.
func (*Server) GetTemporalClient ¶
GetTemporalClient returns the Temporal client.
Click to show internal directories.
Click to hide internal directories.