Documentation
¶
Index ¶
- Constants
- func ReadSectionContent(filePath string, startLine, endLine int, projectRoot string, maxBytes int) (string, error)
- type Edge
- type FileInfo
- type Node
- type SearchResult
- type Stats
- type Store
- func (s *Store) Close() error
- func (s *Store) DeleteAllUnresolvedRefs() error
- func (s *Store) DeleteEdgesByKind(kind string) error
- func (s *Store) DeleteFileData(filePath string) error
- func (s *Store) FindNodeByName(name string) (*Node, error)
- func (s *Store) FindNodeByPath(path string) (*Node, error)
- func (s *Store) GetAllDocumentIDs() ([]string, error)
- func (s *Store) GetAllDocumentNodes() ([]Node, error)
- func (s *Store) GetChildHeadings(docFilePath string) ([]Node, error)
- func (s *Store) GetEdgesBySource(sourceID string) ([]Edge, error)
- func (s *Store) GetEdgesByTarget(targetID string) ([]Edge, error)
- func (s *Store) GetFileHash(path string) (string, error)
- func (s *Store) GetFiles(pathFilter string) ([]FileInfo, error)
- func (s *Store) GetIncomingEdges(nodeID string) ([]Edge, error)
- func (s *Store) GetNodeByID(id string) (*Node, error)
- func (s *Store) GetNodesByFile(filePath string) ([]Node, error)
- func (s *Store) GetOutgoingEdges(nodeID string) ([]Edge, error)
- func (s *Store) GetStats() (Stats, error)
- func (s *Store) GetUnresolvedRefs() ([]UnresolvedRef, error)
- func (s *Store) InsertEdges(edges []Edge) error
- func (s *Store) InsertNodes(nodes []Node) error
- func (s *Store) InsertUnresolvedRefs(refs []UnresolvedRef) error
- func (s *Store) Search(query string, kind string, limit int) ([]SearchResult, error)
- func (s *Store) UpsertFile(f FileInfo) error
- type UnresolvedRef
Constants ¶
View Source
const SchemaSQL = `` /* 2105-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ReadSectionContent ¶
func ReadSectionContent(filePath string, startLine, endLine int, projectRoot string, maxBytes int) (string, error)
ReadSectionContent reads the content of a section from its source file. filePath is relative to projectRoot. startLine and endLine are 1-based. If the result exceeds maxBytes, it is truncated with a marker.
Types ¶
type SearchResult ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteAllUnresolvedRefs ¶
func (*Store) DeleteEdgesByKind ¶
func (*Store) DeleteFileData ¶
func (*Store) GetAllDocumentIDs ¶
func (*Store) GetAllDocumentNodes ¶
func (*Store) GetChildHeadings ¶
func (*Store) GetUnresolvedRefs ¶
func (s *Store) GetUnresolvedRefs() ([]UnresolvedRef, error)
func (*Store) InsertEdges ¶
func (*Store) InsertNodes ¶
func (*Store) InsertUnresolvedRefs ¶
func (s *Store) InsertUnresolvedRefs(refs []UnresolvedRef) error
func (*Store) UpsertFile ¶
Click to show internal directories.
Click to hide internal directories.