From 3f910038a3b9a0b50c227c7c68f43817455fff8c Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 19 Jun 2019 22:04:13 +0100 Subject: [PATCH] Move store to data/store --- {store => data/store}/consul/consul.go | 2 +- {store => data/store}/memory/memory.go | 2 +- {store => data/store}/options.go | 0 {store => data/store}/store.go | 0 sync/map.go | 4 ++-- sync/options.go | 2 +- sync/sync.go | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename {store => data/store}/consul/consul.go (97%) rename {store => data/store}/memory/memory.go (97%) rename {store => data/store}/options.go (100%) rename {store => data/store}/store.go (100%) diff --git a/store/consul/consul.go b/data/store/consul/consul.go similarity index 97% rename from store/consul/consul.go rename to data/store/consul/consul.go index fe937e6c..174d043c 100644 --- a/store/consul/consul.go +++ b/data/store/consul/consul.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/consul/api" "github.com/micro/go-micro/config/options" - "github.com/micro/go-micro/store" + "github.com/micro/go-micro/data/store" ) type ckv struct { diff --git a/store/memory/memory.go b/data/store/memory/memory.go similarity index 97% rename from store/memory/memory.go rename to data/store/memory/memory.go index d6b23e20..0e06eefa 100644 --- a/store/memory/memory.go +++ b/data/store/memory/memory.go @@ -6,7 +6,7 @@ import ( "time" "github.com/micro/go-micro/config/options" - "github.com/micro/go-micro/store" + "github.com/micro/go-micro/data/store" ) type memoryStore struct { diff --git a/store/options.go b/data/store/options.go similarity index 100% rename from store/options.go rename to data/store/options.go diff --git a/store/store.go b/data/store/store.go similarity index 100% rename from store/store.go rename to data/store/store.go diff --git a/sync/map.go b/sync/map.go index 2053c57d..5f7865e9 100644 --- a/sync/map.go +++ b/sync/map.go @@ -6,8 +6,8 @@ import ( "encoding/json" "fmt" - "github.com/micro/go-micro/store" - ckv "github.com/micro/go-micro/store/consul" + "github.com/micro/go-micro/data/store" + ckv "github.com/micro/go-micro/data/store/consul" lock "github.com/micro/go-micro/sync/lock/consul" ) diff --git a/sync/options.go b/sync/options.go index 0e5cf3d0..65f20e28 100644 --- a/sync/options.go +++ b/sync/options.go @@ -1,7 +1,7 @@ package sync import ( - "github.com/micro/go-micro/store" + "github.com/micro/go-micro/data/store" "github.com/micro/go-micro/sync/leader" "github.com/micro/go-micro/sync/lock" "github.com/micro/go-micro/sync/time" diff --git a/sync/sync.go b/sync/sync.go index 7b080b1d..27a6104a 100644 --- a/sync/sync.go +++ b/sync/sync.go @@ -2,7 +2,7 @@ package sync import ( - "github.com/micro/go-micro/store" + "github.com/micro/go-micro/data/store" "github.com/micro/go-micro/sync/leader" "github.com/micro/go-micro/sync/lock" "github.com/micro/go-micro/sync/task"