prefix returns the URL prefix before "/camli/", or before the blobref hash in case of a share URL. Examples: http://foo.com:3179/bs or http://foo.com:3179/share
()
| 931 | // the blobref hash in case of a share URL. |
| 932 | // Examples: http://foo.com:3179/bs or http://foo.com:3179/share |
| 933 | func (c *Client) prefix() (string, error) { |
| 934 | if err := c.prefixOnce.Do(c.initPrefix); err != nil { |
| 935 | return "", err |
| 936 | } |
| 937 | return c.prefixv, nil |
| 938 | } |
| 939 | |
| 940 | // blobPrefix returns the URL prefix before the blobref hash. |
| 941 | // Example: http://foo.com:3179/bs/camli or http://foo.com:3179/share |
no outgoing calls
no test coverage detected