Documentation
¶
Index ¶
- Constants
- Variables
- func ConnectClient(Infura string, HLI string, ip string, port int, passW string) (*ipfsapi.Shell, *ethclient.Client)
- func ConnectServer(Infura string, HLI string) (*ipfsapi.Shell, *ethclient.Client)
- func CreateIndexEntryClient1(data []string, cid string) error
- func CreateIndexEntryServer1(data []string, cid string) error
- func DoCrawlClient(name string, t string) error
- func DoCrawlServer(name string, t string) error
- func DoSearchClient(searchTerms []string) error
- func ExtractPdfDataOCR(name string) ([]string, error)
- type IncorrrectInput
- type QueryResult
Constants ¶
const (
StopCharacter = "\r\n\r\n"
)
Variables ¶
defining the global variables used
Functions ¶
func ConnectClient ¶
func ConnectClient(Infura string, HLI string, ip string, port int, passW string) (*ipfsapi.Shell, *ethclient.Client)
function to setup the local connections to ipfs, eth gateway, gateway server address etc. to be used by clients using the CLI application
func ConnectServer ¶
function to setup the local connections to ipfs, eth gateway etc. to be used at gateway server running the web interface
func CreateIndexEntryClient1 ¶
indexing from the client
func CreateIndexEntryServer1 ¶
indexing from the server checks if entry exist in HLI check if entry for specific document exist in KWI, otherwise add adds to IPNS
func DoCrawlClient ¶
initiates a crawl for a name and content type t to be used at client and uses the server to update the HLI entry on IPNS files are stored locally. Future releases will use tmpdir
func DoCrawlServer ¶
initiates a crawl for a name and content type t to be used on server (and therefore performs name publishing step locally) files are stored locally. Future releases will use tmpdir
func DoSearchClient ¶
search to be used from the client
func ExtractPdfDataOCR ¶
function for extracting keywords from pdf with tesseract OCR
Types ¶
type IncorrrectInput ¶
type IncorrrectInput struct{}
func (*IncorrrectInput) Error ¶
func (zz *IncorrrectInput) Error() string
type QueryResult ¶
type QueryResult struct { SearchTerm string `json:"searchTerm"` CID string `json:"CID"` Metadata string `json:"metadata"` }
structure for returning search results
func DoSearch1 ¶
func DoSearch1(query string) ([]QueryResult, error)
search to be used from the gateway server