• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..09-Aug-2022-

cbdatasource/09-Aug-2022-3,8542,884

examples/09-Aug-2022-1,5431,220

perf/09-Aug-2022-206160

platform/09-Aug-2022-371251

populate/09-Aug-2022-11798

tools/09-Aug-2022-11090

trace/09-Aug-2022-380269

util/09-Aug-2022-5234

.gitignoreD09-Aug-2022149 1514

.travis.ymlD09-Aug-202298 64

LICENSED09-Aug-20221 KiB2016

README.markdownD09-Aug-20221.1 KiB3827

audit.goD09-Aug-2022985 3323

client.goD09-Aug-202237.6 KiB1,4781,069

client_test.goD09-Aug-2022569 2925

conn_pool.goD09-Aug-20229.3 KiB422314

conn_pool_test.goD09-Aug-20228.9 KiB410317

ddocs.goD09-Aug-20225.9 KiB289226

observe.goD09-Aug-20226.1 KiB301240

pools.goD09-Aug-202238.9 KiB1,5591,150

pools_test.goD09-Aug-202210.2 KiB343325

port_map.goD09-Aug-20224.3 KiB10152

port_map_test.goD09-Aug-20227.5 KiB179151

streaming.goD09-Aug-20225 KiB217168

tap.goD09-Aug-20223.4 KiB144115

upr.goD09-Aug-202210.1 KiB399307

users.goD09-Aug-20222.9 KiB12095

users_test.goD09-Aug-20222.6 KiB7767

util.goD09-Aug-2022973 5041

util_test.goD09-Aug-20221.4 KiB6759

vbmap.goD09-Aug-20223.4 KiB7874

vbmap_test.goD09-Aug-20221.1 KiB3925

views.goD09-Aug-20225.6 KiB232163

views_test.goD09-Aug-20222.8 KiB11798

README.markdown

1# A smart client for couchbase in go
2
3This is a *unoffical* version of a Couchbase Golang client. If you are
4looking for the *Offical* Couchbase Golang client please see
5    [CB-go])[https://github.com/couchbaselabs/gocb].
6
7This is an evolving package, but does provide a useful interface to a
8[couchbase](http://www.couchbase.com/) server including all of the
9pool/bucket discovery features, compatible key distribution with other
10clients, and vbucket motion awareness so application can continue to
11operate during rebalances.
12
13It also supports view querying with source node randomization so you
14don't bang on all one node to do all the work.
15
16## Install
17
18    go get github.com/couchbase/go-couchbase
19
20## Example
21
22    c, err := couchbase.Connect("http://dev-couchbase.example.com:8091/")
23    if err != nil {
24    	log.Fatalf("Error connecting:  %v", err)
25    }
26
27    pool, err := c.GetPool("default")
28    if err != nil {
29    	log.Fatalf("Error getting pool:  %v", err)
30    }
31
32    bucket, err := pool.GetBucket("default")
33    if err != nil {
34    	log.Fatalf("Error getting bucket:  %v", err)
35    }
36
37    bucket.Set("someKey", 0, []string{"an", "example", "list"})
38