diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-03 23:39:06 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-03 23:39:06 +0200 |
commit | 3fc9d105d2005114fab8a5af5059f91d30bc77b3 (patch) | |
tree | 228ac5b7499ef27603816b67f3927cd0a15735fc /examples/storage/main.go | |
parent | ad9456267524e08efcf4486cadfb6cef8d182677 (diff) | |
download | go-git-3fc9d105d2005114fab8a5af5059f91d30bc77b3.tar.gz |
example: aerospike, fix and moved to package
Diffstat (limited to 'examples/storage/main.go')
-rw-r--r-- | examples/storage/main.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/storage/main.go b/examples/storage/main.go index 7587812..d85f8e9 100644 --- a/examples/storage/main.go +++ b/examples/storage/main.go @@ -5,10 +5,11 @@ import ( "os" "strings" - "github.com/aerospike/aerospike-client-go" - "github.com/fatih/color" - "gopkg.in/src-d/go-git.v4" + "gopkg.in/src-d/go-git.v4/examples/storage/aerospike" + + driver "github.com/aerospike/aerospike-client-go" + "github.com/fatih/color" ) func main() { @@ -17,12 +18,12 @@ func main() { url := os.Args[2] // Aerospike client to be used by the custom storage - client, err := aerospike.NewClient("127.0.0.1", 3000) + client, err := driver.NewClient("127.0.0.1", 3000) checkIfError(err) // New instance of the custom aerospike storage, all the objects, // references and configuration is saved to aerospike - s, err := NewAerospikeStorage(client, "test", url) + s, err := aerospike.NewStorage(client, "test", url) checkIfError(err) // A new repository instance using as storage the custom implementation |