Documentation
¶
Index ¶
- type Client
- type Config
- type Database
- func (db *Database) CreateDesignDoc(name, path string) (*DocResponse, error)
- func (db *Database) CreateDoc(name string, data []byte) (*DocResponse, error)
- func (db *Database) DeleteDoc(name, revision string) (*DocResponse, error)
- func (db *Database) GetAllDoc(includeContent bool) (*ViewResponse, error)
- func (db *Database) GetDoc(name string) ([]byte, error)
- type DocResponse
- type Row
- type ViewResponse
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
}
func (*Client) ListDatabases ¶
type Config ¶
type Config struct {
Cookies []*http.Cookie `json:"cookies"`
Host string `json:"host"`
Port int `json:"port"`
Username string `json:"username"`
Password string `json:"password"`
TimeoutMS int `json:"timeoutms"`
TLS bool `json:"tls"`
}
Config ...
type Database ¶
type Database struct {
Name string
// contains filtered or unexported fields
}
func (*Database) CreateDesignDoc ¶
func (db *Database) CreateDesignDoc(name, path string) (*DocResponse, error)
func (*Database) CreateDoc ¶
func (db *Database) CreateDoc(name string, data []byte) (*DocResponse, error)
func (*Database) DeleteDoc ¶
func (db *Database) DeleteDoc(name, revision string) (*DocResponse, error)
type DocResponse ¶
type ViewResponse ¶
Click to show internal directories.
Click to hide internal directories.