Versions in this module Expand all Collapse all v0 v0.0.2 Mar 20, 2014 Changes in this version type Database + func (d *Database) URL() string v0.0.1 Jan 17, 2014 Changes in this version + const DELETE + const GET + const HEAD + const JSONCONTENTTYPE + const POST + const PUT + type ActiveTask struct + Continuous bool + Database Database + DesignDocument DesignDoc + Pid string + Progress int + Source string + StartedOn int + Target string + Type string + func (a ActiveTask) PP(printer util.Printer) + type ActiveTasks []ActiveTask + func (a *ActiveTasks) ByType(t string) ActiveTasks + func (a ActiveTasks) PP(printer util.Printer) + type Couchdb struct + ResultHandler func(*Result) + func New(url string) (*Couchdb, error) + func (c *Couchdb) GetActiveTasks() (ActiveTasks, error) + func (c Couchdb) DeleteAllReplicators() (*Replicators, error) + func (c Couchdb) DeleteReplicator(id string) error + func (c Couchdb) GetDatabases() (Databases, error) + func (c Couchdb) GetReplicator(id string) (*Replicator, error) + func (c Couchdb) GetReplicators() (*Replicators, error) + func (c Couchdb) GetServer() (Server, error) + func (c Couchdb) GetSession() (Session, error) + func (c Couchdb) GetStats(sectionA, sectionB string) (Stats, error) + func (c Couchdb) GetViews(db Database) (Views, error) + func (c Couchdb) RefreshView(view View) error + func (c Couchdb) RefreshViews(views Views) (Views, []error) + func (c Couchdb) Replicate(conf ReplicationConfig) error + func (c Couchdb) ReplicateHost(remoteCouch *Couchdb, conf ReplicationConfig) (*Databases, error) + type CouchdbError struct + ErrorMsg string + Reason string + Status int + func (e CouchdbError) Error() string + func (e CouchdbError) IsConflict() bool + func (e CouchdbError) IsNotFound() bool + type Database struct + Name *string + func (d *Database) String() string + func (d *Database) UnmarshalJSON(data []byte) error + func (d Database) PP(printer util.Printer) + type Databases []Database + func (d Databases) PP(printer util.Printer) + type DesignDoc struct + Database Database + ID string + func (d *DesignDoc) UnmarshalJSON(data []byte) error + func (d DesignDoc) PP(printer util.Printer) + func (d DesignDoc) String() string + type ReplicationConfig struct + Cancel bool + Continuous bool + CreateTarget bool + ID string + REV string + Source string + Target string + UserCtx UserCtx + func (r *ReplicationConfig) GenerateId() + type Replicator struct + Owner string + ReplicationId string + ReplicationState string + ReplicationStateTime string + func (r Replicator) PP(printer util.Printer) + type Replicators map[string][]*Replicator + func (r Replicators) PP(printer util.Printer) + type Result struct + Method string + Path string + StatusCode int + func (r Result) PP(printer util.Printer) + type Server struct + Couchdb string + Uuid string + Vendor struct{ ... } + Version string + func (s *Server) String() string + func (s Server) PP(printer util.Printer) + type Session struct + Info map[string]interface{} + OK bool + UserCtx UserCtx + func (s Session) PP(printer util.Printer) + type Stat struct + Current float64 + Description string + Max float64 + Mean float64 + Min float64 + Section string + Stddev float64 + SubSection string + Sum float64 + func (s Stat) PP(printer util.Printer) + func (s Stat) TrimmedDescription() string + type Stats []Stat + func (s Stats) PP(printer util.Printer) + type UserCtx struct + Name string + Roles []string + type View struct + Database Database + DesignDoc DesignDoc + Name string + func (v View) PP(printer util.Printer) + func (v View) String() string + type Views map[DesignDoc][]View + func (v Views) PP(printer util.Printer)