forked from kevadesu/forgejo
Migrate to dep (#3972)
* Update makefile to use dep * Migrate to dep * Fix some deps * Try to find a better version for golang.org/x/net * Try to find a better version for golang.org/x/oauth2
This commit is contained in:
parent
d7fd9bf7bb
commit
3f3383dc0a
281 changed files with 12024 additions and 32676 deletions
30
vendor/github.com/pingcap/go-themis/README.md
generated
vendored
30
vendor/github.com/pingcap/go-themis/README.md
generated
vendored
|
@ -1,30 +0,0 @@
|
|||
# go-themis
|
||||
[](https://travis-ci.org/pingcap/go-themis)
|
||||
|
||||
go-themis is a Go client for [pingcap/themis](https://github.com/pingcap/themis).
|
||||
|
||||
Themis provides cross-row/cross-table transaction on HBase based on [google's Percolator](http://research.google.com/pubs/pub36726.html).
|
||||
|
||||
go-themis is depends on [pingcap/go-hbase](https://github.com/pingcap/go-hbase).
|
||||
|
||||
Install:
|
||||
|
||||
```
|
||||
go get -u github.com/pingcap/go-themis
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
```
|
||||
tx := themis.NewTxn(c, oracles.NewLocalOracle())
|
||||
put := hbase.NewPut([]byte("Row1"))
|
||||
put.AddValue([]byte("cf"), []byte("q"), []byte("value"))
|
||||
|
||||
put2 := hbase.NewPut([]byte("Row2"))
|
||||
put2.AddValue([]byte("cf"), []byte("q"), []byte("value"))
|
||||
|
||||
tx.Put(tblName, put)
|
||||
tx.Put(tblName, put2)
|
||||
|
||||
tx.Commit()
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue