*: rename etcd to etcdserver

release-2.0
Xiang Li 2014-08-22 16:46:56 -07:00 committed by Yicheng Qin
parent 2ff75cda0e
commit f6a9599eb4
32 changed files with 34 additions and 34 deletions

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"errors" "errors"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"crypto/tls" "crypto/tls"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"fmt" "fmt"

View File

@ -1,4 +1,4 @@
package etcd package etcdserver
import ( import (
"time" "time"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"encoding/json" "encoding/json"

View File

@ -1,4 +1,4 @@
package etcd package etcdserver
import ( import (
"math" "math"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"encoding/json" "encoding/json"

View File

@ -1,4 +1,4 @@
package etcd package etcdserver
import ( import (
"sync" "sync"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"fmt" "fmt"

View File

@ -1,4 +1,4 @@
package etcd package etcdserver
import ( import (
"sync" "sync"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"net/http" "net/http"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"bytes" "bytes"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"net/http" "net/http"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"encoding/json" "encoding/json"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"fmt" "fmt"

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"fmt" "fmt"

View File

@ -11,7 +11,7 @@
It has these top-level messages: It has these top-level messages:
Cmd Cmd
*/ */
package etcd package etcdserver
import proto "code.google.com/p/gogoprotobuf/proto" import proto "code.google.com/p/gogoprotobuf/proto"
import json "encoding/json" import json "encoding/json"

View File

@ -1,4 +1,4 @@
package etcd; package etcdserver;
import "code.google.com/p/gogoprotobuf/gogoproto/gogo.proto"; import "code.google.com/p/gogoprotobuf/gogoproto/gogo.proto";

View File

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package etcd package etcdserver
import ( import (
"strings" "strings"

View File

@ -1,4 +1,4 @@
package etcd package etcdserver
import ( import (
"fmt" "fmt"

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package etcd package etcdserver
import ( import (
"net/http" "net/http"

View File

@ -10,13 +10,13 @@ import (
"time" "time"
"github.com/coreos/etcd/conf" "github.com/coreos/etcd/conf"
"github.com/coreos/etcd/etcd" "github.com/coreos/etcd/etcdserver"
) )
func main() { func main() {
var cfg = conf.New() var cfg = conf.New()
if err := cfg.Load(os.Args[1:]); err != nil { if err := cfg.Load(os.Args[1:]); err != nil {
fmt.Println(etcd.Usage() + "\n") fmt.Println(etcdserver.Usage() + "\n")
fmt.Println(err.Error(), "\n") fmt.Println(err.Error(), "\n")
os.Exit(1) os.Exit(1)
} else if cfg.ShowVersion { } else if cfg.ShowVersion {
@ -26,7 +26,7 @@ func main() {
os.Exit(0) os.Exit(0)
} }
e, err := etcd.New(cfg) e, err := etcdserver.New(cfg)
if err != nil { if err != nil {
log.Fatal("etcd:", err) log.Fatal("etcd:", err)
} }