Versions in this module Expand all Collapse all v0 v0.1.0 Nov 8, 2020 Changes in this version + func Conflict(err error) bool + func ErrorStatus(err error, statusCode int) bool + func NotFound(err error) bool + func Unauthorized(err error) bool + type Attachment struct + Body io.Reader + MD5 []byte + Name string + Type string + type Auth interface + AddAuth func(*http.Request) + func BasicAuth(username, password string) Auth + func ProxyAuth(username string, roles []string, secret string) Auth + type ChangesFeed struct + Changes []struct{ ... } + DB *DB + Deleted bool + Doc json.RawMessage + ID string + Pending int64 + Seq interface{} + func (f *ChangesFeed) ChangesRevs() []string + func (f *ChangesFeed) Close() error + func (f *ChangesFeed) Err() error + func (f *ChangesFeed) Next() bool + type Client struct + func NewClient(rawurl string, rt http.RoundTripper) (*Client, error) + func (c *Client) AllDBs() (names []string, err error) + func (c *Client) CreateDB(name string) (*DB, error) + func (c *Client) DB(name string) *DB + func (c *Client) DBUpdates(options Options) (*DBUpdatesFeed, error) + func (c *Client) DeleteDB(name string) error + func (c *Client) EnsureDB(name string) (*DB, error) + func (c *Client) Ping() error + func (c *Client) SetAuth(a Auth) + func (c *Client) URL() string + type DB struct + func (db *DB) AllDocs(result interface{}, opts Options) error + func (db *DB) Attachment(docid, name, rev string) (*Attachment, error) + func (db *DB) AttachmentMeta(docid, name, rev string) (*Attachment, error) + func (db *DB) Changes(options Options) (*ChangesFeed, error) + func (db *DB) Delete(id, rev string) (newrev string, err error) + func (db *DB) DeleteAttachment(docid, name, rev string) (newrev string, err error) + func (db *DB) Get(id string, doc interface{}, opts Options) error + func (db *DB) Name() string + func (db *DB) Put(id string, doc interface{}, rev string) (newrev string, err error) + func (db *DB) PutAttachment(docid string, att *Attachment, rev string) (newrev string, err error) + func (db *DB) PutSecurity(secobj *Security) error + func (db *DB) Rev(id string) (string, error) + func (db *DB) Security() (*Security, error) + func (db *DB) View(ddoc, view string, result interface{}, opts Options) error + type DBUpdatesFeed struct + DB string + Event string + OK bool + Seq interface{} + func (f *DBUpdatesFeed) Close() error + func (f *DBUpdatesFeed) Err() error + func (f *DBUpdatesFeed) Next() bool + type Error struct + ErrorCode string + Method string + Reason string + StatusCode int + URL string + func (e *Error) Error() string + type Members struct + Names []string + Roles []string + type Options map[string]interface + type Security struct + Admins Members + Members Members v0.1.0-update Nov 8, 2020