Documentation
¶
Overview ¶
Package cloudserver implements the HTTP server for Engram Cloud.
It provides REST endpoints for authentication, sync (push/pull), full-text search, and context retrieval over Postgres-backed storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudServer ¶
type CloudServer struct {
// contains filtered or unexported fields
}
CloudServer provides the HTTP API for Engram cloud mode.
func New ¶
func New(store *cloudstore.CloudStore, authSvc *auth.Service, port int, opts ...Option) *CloudServer
New creates a new CloudServer and registers all routes.
func (*CloudServer) Handler ¶
func (s *CloudServer) Handler() http.Handler
Handler returns the underlying http.Handler for testing.
func (*CloudServer) Start ¶
func (s *CloudServer) Start() error
Start binds to the configured port and serves HTTP traffic. It matches the pattern from internal/server/server.go.
type Option ¶
type Option func(*CloudServer)
Option configures a CloudServer.
func WithDashboard ¶
func WithDashboard(cfg dashboard.DashboardConfig) Option
WithDashboard enables the embedded web dashboard with the given config.
Click to show internal directories.
Click to hide internal directories.