Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the version of the application Version string = "0.1.0" )
Functions ¶
func NewHTTPServer ¶
func NewHTTPServer(pinta *PintaDBServer, port uint64)
NewHTTPServer creates a new HTTP server for PintaDB
Types ¶
type PintaDBServer ¶
func NewServer ¶
func NewServer(config Config) (*PintaDBServer, error)
NewServer creates a new PintaDB server The server is initialized with an empty database by default
func (*PintaDBServer) AddDocument ¶
func (s *PintaDBServer) AddDocument(text string) error
AddDocument adds a new document to the database The document is indexed and vectorized before being added
func (*PintaDBServer) DBFile ¶
func (s *PintaDBServer) DBFile() (*os.File, error)
DBFile returns the file object of the database
func (*PintaDBServer) LoadDB ¶
func (s *PintaDBServer) LoadDB() error
LoadDB loads the database from the file
Click to show internal directories.
Click to hide internal directories.