server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	Version          string
	SubscriptionType string
	RateLimitTier    string
	// contains filtered or unexported fields
}

func NewHandlers

func NewHandlers(claudeDir string, st *store.Store) *Handlers

func (*Handlers) HandleHistory

func (h *Handlers) HandleHistory(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleInfo

func (h *Handlers) HandleInfo(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleMemories

func (h *Handlers) HandleMemories(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleMemoriesConsolidation added in v0.2.0

func (h *Handlers) HandleMemoriesConsolidation(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleMemoriesGraph

func (h *Handlers) HandleMemoriesGraph(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleMemoriesSearch

func (h *Handlers) HandleMemoriesSearch(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleMemoriesStaleness

func (h *Handlers) HandleMemoriesStaleness(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleSessionDetail

func (h *Handlers) HandleSessionDetail(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleSessions

func (h *Handlers) HandleSessions(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleToday

func (h *Handlers) HandleToday(w http.ResponseWriter, r *http.Request)

func (*Handlers) HandleUsage

func (h *Handlers) HandleUsage(w http.ResponseWriter, r *http.Request)

func (*Handlers) RefreshMemories

func (h *Handlers) RefreshMemories()

func (*Handlers) SetLatestUsage

func (h *Handlers) SetLatestUsage(data map[string]interface{})

type SSEBroker

type SSEBroker struct {
	// contains filtered or unexported fields
}

func NewBroker

func NewBroker() *SSEBroker

func (*SSEBroker) Run

func (b *SSEBroker) Run(ctx context.Context)

func (*SSEBroker) Send

func (b *SSEBroker) Send(event SSEEvent)

func (*SSEBroker) ServeHTTP

func (b *SSEBroker) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SSEEvent

type SSEEvent struct {
	Event string
	Data  string
}

type Server

type Server struct {
	Mux      *http.ServeMux
	Broker   *SSEBroker
	Handlers *Handlers
}

func New

func New(claudeDir string, st *store.Store, webFS fs.FS) *Server

Jump to

Keyboard shortcuts

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