Browse Source

raftsnap: rename "snap" to "raftsnap"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 8 years ago
parent
commit
60d5ab5485

+ 1 - 1
snap/db.go → raftsnap/db.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package snap
+package raftsnap
 
 import (
 	"errors"

+ 1 - 1
snap/message.go → raftsnap/message.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package snap
+package raftsnap
 
 import (
 	"io"

+ 1 - 1
snap/metrics.go → raftsnap/metrics.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package snap
+package raftsnap
 
 import "github.com/prometheus/client_golang/prometheus"
 

+ 0 - 0
snap/snappb/snap.pb.go → raftsnap/snappb/snap.pb.go


+ 0 - 0
snap/snappb/snap.proto → raftsnap/snappb/snap.proto


+ 3 - 3
snap/snapshotter.go → raftsnap/snapshotter.go

@@ -12,8 +12,8 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-// Package snap stores raft nodes' states with snapshots.
-package snap
+// Package raftsnap stores raft nodes' states with snapshots.
+package raftsnap
 
 import (
 	"errors"
@@ -30,7 +30,7 @@ import (
 	"github.com/coreos/etcd/pkg/pbutil"
 	"github.com/coreos/etcd/raft"
 	"github.com/coreos/etcd/raft/raftpb"
-	"github.com/coreos/etcd/snap/snappb"
+	"github.com/coreos/etcd/raftsnap/snappb"
 
 	"github.com/coreos/pkg/capnslog"
 )

+ 1 - 1
snap/snapshotter_test.go → raftsnap/snapshotter_test.go

@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-package snap
+package raftsnap
 
 import (
 	"fmt"