Documentation ¶ Index ¶ type ChatRequest type ChatResponse type Server func NewServer(ctx context.Context, cfg ServerConfig) (*Server, error) func (s *Server) GetToken() string func (s *Server) Shutdown(ctx context.Context) error func (s *Server) Start() error type ServerConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ChatRequest ¶ type ChatRequest struct { SessionID string `json:"sessionId"` Prompt string `json:"prompt"` Model string `json:"model,omitempty"` } type ChatResponse ¶ type ChatResponse struct { SessionID string `json:"sessionId"` MessageID string `json:"messageId"` Response string `json:"response"` } type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(ctx context.Context, cfg ServerConfig) (*Server, error) func (*Server) GetToken ¶ func (s *Server) GetToken() string func (*Server) Shutdown ¶ func (s *Server) Shutdown(ctx context.Context) error func (*Server) Start ¶ func (s *Server) Start() error type ServerConfig ¶ type ServerConfig struct { Host string Port int Version string DB *sql.DB CWD string } Source Files ¶ View all Source files handlers_base.gohandlers_chat.gohandlers_files.gohandlers_sessions.gohandlers_tools.goroutes.goserver.go Click to show internal directories. Click to hide internal directories.