Documentation ¶
Index ¶
- type AsdSystem
- type Database
- func (d *Database) Close() error
- func (d *Database) Connect() error
- func (d *Database) InitTables() error
- func (d *Database) InsertAsdSystem(record *AsdSystem) error
- func (d *Database) InsertDocument(filename, body string) error
- func (d *Database) InsertPackage(record *Package) error
- func (d *Database) InsertPackageDefinition(record *PackageDefinition) error
- func (d *Database) InsertSymbol(record *Symbol) error
- func (d *Database) InsertSymbolDefinition(record *SymbolDefinition) error
- func (d *Database) InsertToken(tokenId primitive.TokenId, term string) error
- func (d *Database) ResolveAllAsdSystem() ([]*AsdSystem, error)
- func (d *Database) ResolveAllDocuments() ([]*Document, error)
- func (d *Database) ResolveAllPackageDefinitions() ([]*PackageDefinition, error)
- func (d *Database) ResolveAllPackages() ([]*Package, error)
- func (d *Database) ResolveAllSymbolDefinitions() ([]*SymbolDefinition, error)
- func (d *Database) ResolveAllSymbols() ([]*Symbol, error)
- func (d *Database) ResolveAllTokens() ([]*Token, error)
- func (d *Database) ResolveDocumentByFilename(filename string) (*Document, error)
- func (d *Database) ResolveDocumentById(id primitive.DocumentId) (*Document, error)
- func (d *Database) ResolveDocumentWithBodyById(id primitive.DocumentId) (string, error)
- func (d *Database) ResolveDocumentsByFilenames(filenames []string) ([]*Document, error)
- func (d *Database) ResolveDocumentsByIds(ids []primitive.DocumentId) ([]*Document, error)
- func (d *Database) ResolveInvertedIndex(tokenIds []primitive.TokenId) (*invertedindex.InvertedIndex, error)
- func (d *Database) ResolveSymbolDefinitionsBySymbolId(id primitive.SymbolId) ([]*SymbolDefinition, error)
- func (d *Database) ResolveSymbols(symbol *Symbol) ([]*Symbol, error)
- func (d *Database) ResolveTokenById(id primitive.TokenId) (*Token, error)
- func (d *Database) ResolveTokenByTerm(term string) (*Token, error)
- func (d *Database) ResolveTokensByTerms(terms []string) ([]*Token, error)
- func (d *Database) ResolveWholeInvertedIndex() (*invertedindex.InvertedIndex, error)
- func (d *Database) UpsertInvertedIndex(tokenId primitive.TokenId, blob []byte) error
- type Document
- type InvertedIndex
- type Location
- type Package
- type PackageDefinition
- type Symbol
- type SymbolDefinition
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) InitTables ¶
func (*Database) InsertAsdSystem ¶
func (*Database) InsertDocument ¶
func (*Database) InsertPackage ¶
func (*Database) InsertPackageDefinition ¶
func (d *Database) InsertPackageDefinition(record *PackageDefinition) error
func (*Database) InsertSymbol ¶
func (*Database) InsertSymbolDefinition ¶
func (d *Database) InsertSymbolDefinition(record *SymbolDefinition) error
func (*Database) InsertToken ¶
func (*Database) ResolveAllAsdSystem ¶
func (*Database) ResolveAllDocuments ¶
func (*Database) ResolveAllPackageDefinitions ¶
func (d *Database) ResolveAllPackageDefinitions() ([]*PackageDefinition, error)
func (*Database) ResolveAllPackages ¶
func (*Database) ResolveAllSymbolDefinitions ¶
func (d *Database) ResolveAllSymbolDefinitions() ([]*SymbolDefinition, error)
func (*Database) ResolveAllSymbols ¶
func (*Database) ResolveAllTokens ¶
func (*Database) ResolveDocumentByFilename ¶
func (*Database) ResolveDocumentById ¶
func (d *Database) ResolveDocumentById(id primitive.DocumentId) (*Document, error)
func (*Database) ResolveDocumentWithBodyById ¶
func (d *Database) ResolveDocumentWithBodyById(id primitive.DocumentId) (string, error)
func (*Database) ResolveDocumentsByFilenames ¶
func (*Database) ResolveDocumentsByIds ¶
func (d *Database) ResolveDocumentsByIds(ids []primitive.DocumentId) ([]*Document, error)
func (*Database) ResolveInvertedIndex ¶
func (d *Database) ResolveInvertedIndex(tokenIds []primitive.TokenId) ( *invertedindex.InvertedIndex, error, )
func (*Database) ResolveSymbolDefinitionsBySymbolId ¶
func (d *Database) ResolveSymbolDefinitionsBySymbolId(id primitive.SymbolId) ( []*SymbolDefinition, error, )
func (*Database) ResolveSymbols ¶
func (*Database) ResolveTokenById ¶
func (*Database) ResolveTokenByTerm ¶
func (*Database) ResolveTokensByTerms ¶
func (*Database) ResolveWholeInvertedIndex ¶
func (d *Database) ResolveWholeInvertedIndex() (*invertedindex.InvertedIndex, error)
type Document ¶
type Document struct { Id primitive.DocumentId `db:"id"` Filename string `db:"filename"` Body string `db:"body"` }
type InvertedIndex ¶
type Location ¶
type Location struct { Specifier string `db:"specifier"` DocumentId primitive.DocumentId `db:"document_id"` Position int `db:"position"` }
type PackageDefinition ¶
type Symbol ¶
type Symbol struct { Id primitive.SymbolId `db:"id"` Name string `db:"name"` PackageName sql.NullString `db:"package_name"` }
type SymbolDefinition ¶
Click to show internal directories.
Click to hide internal directories.