Versions in this module Expand all Collapse all v0 v0.8.0 Jun 8, 2026 Changes in this version + const Version + type CacheStatusResponse struct + DatabasePath string + DefaultMode string + Enabled bool + OfflineOnly bool + type Config struct + APIKey string + Addr string + BackgroundSync bool + CORSOrigins []string + DefaultProduct string + DefaultQueryMode QueryMode + Logger *slog.Logger + NoAuth bool + OfflineOnly bool + SyncInterval time.Duration + func DefaultConfig() Config + type EntitiesResponse struct + Entities []EntityInfo + type EntityInfo struct + Description string + Fields []string + Name string + type EntitySyncInfo struct + LastSync string + RecordCount int + type ErrorResponse struct + Code string + Details string + Error string + type FilterRequest struct + AQL string + Description string + IsFavorite bool + Name string + Product string + type FilterResponse struct + AQL string + CreatedAt string + Description string + ID string + IsFavorite bool + Name string + Product string + UpdatedAt string + type FiltersResponse struct + Filters []FilterResponse + type GraphQueryRequest struct + Cypher string + Params map[string]any + type GraphStatusResponse struct + Enabled bool + URI string + type ProductInfo struct + ID string + Name string + ProductLineID string + ReferenceNum string + type ProductsResponse struct + Products []ProductInfo + type QueryMode string + const QueryModeAPI + const QueryModeOffline + const QueryModePreferCache + func (m QueryMode) IsValid() bool + type QueryRequest struct + AQL string + Mode QueryMode + Product string + type QueryResponse struct + Count int + Entity string + Error string + Records []result.Record + Source string + type SearchRequest struct + Entities []string + Limit int + Query string + type SearchResponse struct + Count int + Query string + Results []SearchResult + type SearchResult struct + Description string + Entity string + ID string + Name string + Score float64 + type Server struct + func New(cfg Config) (*Server, error) + func (s *Server) CacheEnabled() bool + func (s *Server) EffectiveQueryMode(requested QueryMode) QueryMode + func (s *Server) GraphEnabled() bool + func (s *Server) ListenAndServe() error + func (s *Server) Run() error + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error + type SyncEntityResult struct + Duration string + Entity string + Error string + RecordCount int + type SyncRequest struct + Entities []string + Incremental bool + Product string + type SyncResponse struct + Error string + Product string + Results []SyncEntityResult + type SyncStatusResponse struct + Entities map[string]EntitySyncInfo + Product string + type SyntaxResponse struct + Examples []string + Operators []string + Syntax string + type VersionResponse struct + CacheEnabled bool + DefaultMode string + Server string + Studio string