Documentation ¶
Index ¶
- type Client
- type Connector
- func (dbCon *Connector) AddDoc(docName string, doc []byte) (string, error)
- func (dbCon *Connector) DeleteAllDocs() error
- func (dbCon *Connector) DeleteDoc(docName string) error
- func (dbCon *Connector) GetDoc(returnNilOnNotFound bool, docName string) (doc []byte, err error)
- func (dbCon *Connector) GetDocList() (docNameList []string, docList [][]byte, err error)
- func (dbCon *Connector) UpdateDoc(docName string, doc []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - Implements a couchDB client
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector - Implements a CouchDB connector
func NewConnector ¶
NewConnector - Creates and initialize a CouchDB connector to a database
func (*Connector) DeleteAllDocs ¶
deleteAllDocs - Remove all documents from DB
func (*Connector) GetDocList ¶
getDocList - Get document list from DB
Click to show internal directories.
Click to hide internal directories.