couchbase / go-couchbase

Couchbase client in Go
https://godoc.org/github.com/couchbase/go-couchbase
MIT License
321 stars 92 forks source link

Can't get clusterName #90

Open MarsBighead opened 5 years ago

MarsBighead commented 5 years ago

The default Pool data structure can not match the Couchbase RESTful API pool/default. Pool struct can not only cover 3 fields while the API(Version: EE6.0.0) has more.

// A Pool of nodes and buckets.
type Pool struct {
    BucketMap map[string]*Bucket
    Nodes     []Node

    BucketURL map[string]string `json:"buckets"`

    client Client
}

I think ClusterName is an important field for cluster overview, and the structure can match the API better if the other fields in the API have been added.