cloudserver

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

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