Browse Source

raftsnap: add "doc.go"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 8 years ago
parent
commit
d095cc6ff0
2 changed files with 17 additions and 1 deletions
  1. 17 0
      raftsnap/doc.go
  2. 0 1
      raftsnap/snapshotter.go

+ 17 - 0
raftsnap/doc.go

@@ -0,0 +1,17 @@
+// Copyright 2015 The etcd Authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Package raftsnap handles Raft nodes' states with snapshots.
+// The snapshot logic is internal to etcd server and raft package.
+package raftsnap

+ 0 - 1
raftsnap/snapshotter.go

@@ -12,7 +12,6 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-// Package raftsnap stores raft nodes' states with snapshots.
 package raftsnap
 
 import (