MCPcopy Create free account
hub / github.com/perkeep/perkeep / HelpRoot

Method HelpRoot

pkg/client/client.go:591–599  ·  view source on GitHub ↗

HelpRoot returns the server's help handler. If the server isn't running a help handler, the error will be ErrNoHelpRoot.

()

Source from the content-addressed store, hash-verified

589// If the server isn't running a help handler, the error will be
590// ErrNoHelpRoot.
591func (c *Client) HelpRoot() (string, error) {
592 if err := c.condDiscovery(); err != nil {
593 return "", err
594 }
595 if c.helpRoot == "" {
596 return "", ErrNoHelpRoot
597 }
598 return c.helpRoot, nil
599}
600
601// ShareRoot returns the server's share handler prefix URL.
602// If the server isn't running a share handler, the error will be

Callers 1

Calls 1

condDiscoveryMethod · 0.95

Tested by

no test coverage detected