Versions in this module Expand all Collapse all v1 v1.2.2 Jan 27, 2026 Changes in this version + func BadRequestError(c *gin.Context, message string) + func CreatedResponse(c *gin.Context, message string, data interface{}) + func ErrorResponse(c *gin.Context, code int, message string) + func InternalError(c *gin.Context, message string) + func NotFoundError(c *gin.Context, message string) + func NotFoundErrorWithID(c *gin.Context, id string) + func SuccessResponse(c *gin.Context, message string, data interface{}) + type AnalyzeRequest struct + AnalysisType string + Concept string + ContextLimit int + Domain string + Limit int + Query string + Question string + ResponseFormat string + SessionID string + TemporalAnalysisType string + Timeframe string + type AnalyzeResponse struct + Analysis string + Insights []string + Patterns []string + Query string + Recommendations []string + type CategoryResponse struct + AutoGenerated bool + ConfidenceThreshold float64 + CreatedAt time.Time + Description string + ID string + Name string + ParentCategoryID *string + type CreateCategoryRequest struct + Description string + Name string + ParentID string + type CreateDomainRequest struct + Description string + Name string + type CreateMemoryRequest struct + Content string + Domain string + Importance int + Source string + Tags []string + type CreateRelationshipRequest struct + Context string + RelationshipType string + SourceMemoryID string + Strength float64 + TargetMemoryID string + type DateRangeSearchRequest struct + Domain string + EndDate string + Limit int + SessionID string + StartDate string + type DateRangeStats struct + Earliest time.Time + Latest time.Time + type DiscoverRelationshipsRequest struct + Limit int + MinStrength float64 + type DomainResponse struct + CreatedAt time.Time + Description string + ID string + Name string + UpdatedAt time.Time + type DomainStatsResponse struct + AverageImportance float64 + Domain string + MemoryCount int + type GraphEdge struct + AutoGenerated bool + Context *string + CreatedAt string + ID string + RelationshipType string + SourceMemoryID string + Strength float64 + TargetMemoryID string + type GraphNode struct + Distance int + Memory *MemoryData + Relationships []GraphNodeRelationship + type GraphNodeRelationship struct + AutoGenerated bool + Context *string + CreatedAt string + ID string + RelationshipType string + SourceMemoryID string + Strength float64 + TargetMemoryID string + type GraphRequest struct + Depth int + IncludeStrength bool + IncludeTypes []string + MinStrength float64 + type GraphResponse struct + CentralMemory *MemoryData + Depth int + Edges []GraphEdge + Nodes []GraphNode + TotalNodes int + type HealthResponse struct + Session string + Status string + Timestamp string + type MemoryData struct + Content string + CreatedAt time.Time + Domain *string + ID string + Importance int + SessionID string + Slug *string + Source *string + Tags []string + UpdatedAt time.Time + type MemoryResponse struct + Memory *MemoryData + RelevanceScore float64 + SimilarityScore *float64 + type PaginationMetadata struct + CurrentPage int + HasNextPage bool + HasPreviousPage bool + PageSize int + TotalCount int + type RelationshipResponse struct + AutoGenerated bool + Context string + CreatedAt string + ID string + RelationshipType string + SourceMemoryID string + Strength float64 + TargetMemoryID string + type RelationshipSuggestion struct + Confidence float64 + Reasoning string + SourceID string + TargetID string + Type string + type Response struct + Data interface{} + Message string + Success bool + type SearchInfo struct + HasMoreResults bool + ProcessingTimeMs int + Query string + SearchType string + TotalResults int + type SearchRequest struct + Domain string + Limit int + Query string + ResponseFormat string + SearchType string + SessionFilterMode string + SessionID string + Tags []string + UseAI bool + type SearchResponse struct + Data []SearchResultItem + PaginationMetadata PaginationMetadata + QueryHash string + SearchInfo SearchInfo + type SearchResultItem struct + CreatedAt string + ID string + Importance int + RelevanceScore float64 + Summary string + Tags []string + type Server struct + func NewServer(db *database.Database, cfg *config.Config) *Server + func (s *Server) Router() *gin.Engine + func (s *Server) Start() error + func (s *Server) Stop(ctx context.Context) error + type SessionResponse struct + AgentType string + CreatedAt time.Time + IsActive bool + LastAccessed time.Time + SessionID string + type StatsResponse struct + AverageImportance float64 + DateRange DateRangeStats + MostCommonTags []TagCount + SessionID string + TotalMemories int + UniqueTags []string + type TagCount struct + Count int + Tag string + type TagSearchRequest struct + Domain string + Limit int + SessionID string + TagOperator string + Tags []string + type UpdateMemoryRequest struct + Content string + Domain string + Importance int + Source string + Tags []string