package
2.0.0+incompatible
Repository: https://github.com/cv-library/couchdb.git
Documentation: pkg.go.dev

# Functions

BodyEncoder returns a function which returns the encoded body.
ContextClientTrace returns the ClientTrace associated with the provided context.
DecodeJSON unmarshals the response body into i.
EncodeBody JSON encodes i to an io.ReadCloser.
EncodeDocID encodes a document ID according to CouchDB's path encoding rules.
ETag returns the unquoted ETag value, and a bool indicating whether it was found.
ExitStatus returns the curl exit status embedded in the error, or 1 (unknown error), if there was no specified exit status.
GetRev extracts the revision from the response's Etag header.
New returns a connection to a remote CouchDB server.
NewWithClient works the same as New(), but allows providing a custom *http.Client for all network connections.
ResponseError returns an error from an *http.Response.
WithClientTrace returns a new context based on the provided parent ctx.

# Constants

Failed to connect to host.
Failed to initialize.
The given remote host was not resolved.
The requested url was not found or returned another error with the HTTP error code being 400 or above.
The specified time-out period was reached according to the conditions.
Internal post request generation error.
Read error.
URL malformed.
When following redirects, curl hit the maximum amount.
Exited with an unknown failure.
Weird server reply.
Write error.
Standard headers used by CouchDB.
Standard headers used by CouchDB.
The default UserAgent values.
The default UserAgent values.

# Structs

BasicAuth provides HTTP Basic Auth for a client.
Client represents a client connection.
ClientTrace is a set of hooks to run at various stages of an outgoing HTTP request.
CookieAuth provides CouchDB Cookie auth services as described at http://docs.couchdb.org/en/2.0.0/api/server/authn.html#cookie-authentication CookieAuth stores authentication state after use, so should not be re-used.
HTTPError is an error that represents an HTTP transport error.
Options are optional parameters which may be sent with a request.
No description provided by the author
Response represents a response from a CouchDB server.

# Interfaces

Authenticator is an interface that provides authentication to a server.