diff options
author | Mura Li <typeless@users.noreply.github.com> | 2019-03-27 19:15:23 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-03-27 19:15:23 +0800 |
commit | d77176912bccf1dc0ad93366df55f00fee23b498 (patch) | |
tree | 309fc6350f77f4061360160b88343360d45d5d24 /vendor/github.com/couchbaselabs | |
parent | d578b71d61ee8131e8abf7f538b93d8c6cc6fe6d (diff) | |
download | gitea-d77176912bccf1dc0ad93366df55f00fee23b498.tar.gz gitea-d77176912bccf1dc0ad93366df55f00fee23b498.zip |
Use Go1.11 module (#5743)
* Migrate to go modules
* make vendor
* Update mvdan.cc/xurls
* make vendor
* Update code.gitea.io/git
* make fmt-check
* Update github.com/go-sql-driver/mysql
* make vendor
Diffstat (limited to 'vendor/github.com/couchbaselabs')
3 files changed, 56 insertions, 0 deletions
diff --git a/vendor/github.com/couchbaselabs/go-couchbase/.gitignore b/vendor/github.com/couchbaselabs/go-couchbase/.gitignore new file mode 100644 index 0000000000..eda885ce8d --- /dev/null +++ b/vendor/github.com/couchbaselabs/go-couchbase/.gitignore @@ -0,0 +1,14 @@ +#* +*.6 +*.a +*~ +*.swp +/examples/basic/basic +/hello/hello +/populate/populate +/tools/view2go/view2go +/tools/loadfile/loadfile +gotags.files +TAGS +6.out +_* diff --git a/vendor/github.com/couchbaselabs/go-couchbase/.travis.yml b/vendor/github.com/couchbaselabs/go-couchbase/.travis.yml new file mode 100644 index 0000000000..4ecafb1894 --- /dev/null +++ b/vendor/github.com/couchbaselabs/go-couchbase/.travis.yml @@ -0,0 +1,5 @@ +language: go +install: go get -v -d ./... && go build -v ./... +script: go test -v ./... + +go: 1.1.1 diff --git a/vendor/github.com/couchbaselabs/go-couchbase/README.markdown b/vendor/github.com/couchbaselabs/go-couchbase/README.markdown new file mode 100644 index 0000000000..bf5fe49421 --- /dev/null +++ b/vendor/github.com/couchbaselabs/go-couchbase/README.markdown @@ -0,0 +1,37 @@ +# A smart client for couchbase in go + +This is a *unoffical* version of a Couchbase Golang client. If you are +looking for the *Offical* Couchbase Golang client please see + [CB-go])[https://github.com/couchbaselabs/gocb]. + +This is an evolving package, but does provide a useful interface to a +[couchbase](http://www.couchbase.com/) server including all of the +pool/bucket discovery features, compatible key distribution with other +clients, and vbucket motion awareness so application can continue to +operate during rebalances. + +It also supports view querying with source node randomization so you +don't bang on all one node to do all the work. + +## Install + + go get github.com/couchbase/go-couchbase + +## Example + + c, err := couchbase.Connect("http://dev-couchbase.example.com:8091/") + if err != nil { + log.Fatalf("Error connecting: %v", err) + } + + pool, err := c.GetPool("default") + if err != nil { + log.Fatalf("Error getting pool: %v", err) + } + + bucket, err := pool.GetBucket("default") + if err != nil { + log.Fatalf("Error getting bucket: %v", err) + } + + bucket.Set("someKey", 0, []string{"an", "example", "list"}) |