MCPcopy
hub / github.com/perkeep/perkeep / SearchRoot

Method SearchRoot

pkg/client/client.go:578–586  ·  view source on GitHub ↗

SearchRoot returns the server's search handler. If the server isn't running an index and search handler, the error will be ErrNoSearchRoot.

()

Source from the content-addressed store, hash-verified

576// If the server isn't running an index and search handler, the error
577// will be ErrNoSearchRoot.
578func (c *Client) SearchRoot() (string, error) {
579 if err := c.condDiscovery(); err != nil {
580 return "", err
581 }
582 if c.searchRoot == "" {
583 return "", ErrNoSearchRoot
584 }
585 return c.searchRoot, nil
586}
587
588// HelpRoot returns the server's help handler.
589// If the server isn't running a help handler, the error will be

Callers 7

GetRecentPermanodesMethod · 0.95
GetPermanodesWithAttrMethod · 0.95
DescribeMethod · 0.95
GetClaimsMethod · 0.95
queryMethod · 0.95
fileMapFromDuplicateMethod · 0.80

Calls 1

condDiscoveryMethod · 0.95

Tested by

no test coverage detected