Merge pull request #15 from aszxqw/upstream_master

Changing to github !!! Thanks!
This commit is contained in:
chrislusf 2014-09-25 21:24:08 -07:00
commit 348a50052e
71 changed files with 148 additions and 138 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
weed

View File

@ -5,10 +5,19 @@ weed-fs
[![GoDoc](https://godoc.org/github.com/chrislusf/weed-fs/go?status.svg)](https://godoc.org/github.com/chrislusf/weed-fs/go) [![GoDoc](https://godoc.org/github.com/chrislusf/weed-fs/go?status.svg)](https://godoc.org/github.com/chrislusf/weed-fs/go)
[![RTD](https://readthedocs.org/projects/weed-fs/badge/?version=latest)](http://weed-fs.readthedocs.org/en/latest/) [![RTD](https://readthedocs.org/projects/weed-fs/badge/?version=latest)](http://weed-fs.readthedocs.org/en/latest/)
## Introduction
An official mirror of code.google.com/p/weed-fs. An official mirror of code.google.com/p/weed-fs.
Moving to github.com to make cooperations easier. Moving to github.com to make cooperations easier.
This repo and the google code repo will be kept synchronized. This repo and the google code repo will be kept synchronized.
## Usage
```
go get github.com/chrislusf/weed-fs/go/weed
```
## Reference
For documents and bug reporting, Please visit For documents and bug reporting, Please visit
http://weed-fs.googlecode.com http://weed-fs.googlecode.com

View File

@ -3,7 +3,7 @@ package filer
import () import ()
import ( import (
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"

View File

@ -2,7 +2,7 @@ package filer
import ( import (
"bufio" "bufio"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"fmt" "fmt"
"io" "io"
"os" "os"

View File

@ -1,7 +1,7 @@
package filer package filer
import ( import (
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"errors" "errors"
"fmt" "fmt"
"path/filepath" "path/filepath"

View File

@ -2,7 +2,7 @@ package filer
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/util" "github.com/syndtr/goleveldb/leveldb/util"
) )

View File

@ -1,8 +1,8 @@
package operation package operation
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"net/url" "net/url"

View File

@ -1,7 +1,7 @@
package operation package operation
import ( import (
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"net/url" "net/url"

View File

@ -1,8 +1,8 @@
package operation package operation
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
) )

View File

@ -1,7 +1,7 @@
package operation package operation
import ( import (
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
_ "fmt" _ "fmt"

View File

@ -2,7 +2,7 @@ package operation
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"io" "io"
"mime" "mime"
"os" "os"

View File

@ -2,7 +2,7 @@ package operation
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"math/rand" "math/rand"
"os" "os"
"runtime" "runtime"

View File

@ -1,8 +1,8 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"log" "log"
"os" "os"
"testing" "testing"

View File

@ -2,7 +2,7 @@ package storage
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"compress/flate" "compress/flate"
"compress/gzip" "compress/gzip"
"io/ioutil" "io/ioutil"

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"fmt" "fmt"
"hash/crc32" "hash/crc32"
) )

View File

@ -1,8 +1,8 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/hex" "encoding/hex"
"errors" "errors"
"strings" "strings"

View File

@ -1,9 +1,9 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/images" "github.com/chrislusf/weed-fs/go/images"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/hex" "encoding/hex"
"errors" "errors"
"io/ioutil" "io/ioutil"

View File

@ -1,8 +1,8 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"fmt" "fmt"
"io" "io"
"os" "os"

View File

@ -1,8 +1,8 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"errors" "errors"
"fmt" "fmt"
"io" "io"

View File

@ -2,9 +2,9 @@ package storage
import ( import (
proto "code.google.com/p/goprotobuf/proto" proto "code.google.com/p/goprotobuf/proto"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"fmt" "fmt"
"strconv" "strconv"
) )

View File

@ -2,7 +2,7 @@ package storage
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"errors" "errors"
"fmt" "fmt"
"io" "io"

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
) )
type VolumeInfo struct { type VolumeInfo struct {

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"fmt" "fmt"
"os" "os"
) )

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"fmt" "fmt"
"os" "os"
"time" "time"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"flag" "flag"
"fmt" "fmt"
"log" "log"

View File

@ -1,8 +1,8 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"net/url" "net/url"

View File

@ -1,8 +1,8 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"github.com/goraft/raft" "github.com/goraft/raft"
) )

View File

@ -1,7 +1,7 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
) )
type Collection struct { type Collection struct {

View File

@ -1,8 +1,8 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"errors" "errors"
"math/rand" "math/rand"
"strings" "strings"

View File

@ -2,10 +2,10 @@ package topology
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"net/http" "net/http"
"strconv" "strconv"
) )

View File

@ -1,10 +1,10 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/sequence" "github.com/chrislusf/weed-fs/go/sequence"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"errors" "errors"
"github.com/goraft/raft" "github.com/goraft/raft"
"io/ioutil" "io/ioutil"

View File

@ -1,8 +1,8 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"math/rand" "math/rand"
"time" "time"
) )

View File

@ -1,9 +1,9 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"net/url" "net/url"

View File

@ -1,8 +1,8 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"fmt" "fmt"
"math/rand" "math/rand"
"sync" "sync"

View File

@ -1,8 +1,8 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/sequence" "github.com/chrislusf/weed-fs/go/sequence"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"encoding/json" "encoding/json"
"fmt" "fmt"
"testing" "testing"

View File

@ -1,8 +1,8 @@
package topology package topology
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"errors" "errors"
"math/rand" "math/rand"
"sync" "sync"

View File

@ -10,7 +10,7 @@ package util
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"encoding/json" "encoding/json"
"os" "os"
) )

View File

@ -2,7 +2,7 @@ package util
import ( import (
"bufio" "bufio"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"errors" "errors"
"os" "os"
) )

View File

@ -1,7 +1,7 @@
package util package util
import ( import (
"code.google.com/p/weed-fs/go/stats" "github.com/chrislusf/weed-fs/go/stats"
"net" "net"
"time" "time"
) )

View File

@ -2,9 +2,9 @@ package main
import ( import (
"bufio" "bufio"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"fmt" "fmt"
"io" "io"
"math" "math"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
) )
func init() { func init() {

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"

View File

@ -3,8 +3,8 @@ package main
import ( import (
"archive/tar" "archive/tar"
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"fmt" "fmt"
"os" "os"
"path" "path"

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"code.google.com/p/weed-fs/go/weed/weed_server" "github.com/chrislusf/weed-fs/go/weed/weed_server"
"net/http" "net/http"
"os" "os"
"strconv" "strconv"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"os" "os"
"path" "path"
"strconv" "strconv"

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"code.google.com/p/weed-fs/go/weed/weed_server" "github.com/chrislusf/weed-fs/go/weed/weed_server"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"net/http" "net/http"
"os" "os"

View File

@ -5,10 +5,10 @@ package main
import ( import (
"bazil.org/fuse" "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"
"code.google.com/p/weed-fs/go/filer" "github.com/chrislusf/weed-fs/go/filer"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"fmt" "fmt"
"os" "os"
"runtime" "runtime"

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"code.google.com/p/weed-fs/go/weed/weed_server" "github.com/chrislusf/weed-fs/go/weed/weed_server"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"net/http" "net/http"
"os" "os"

View File

@ -2,7 +2,7 @@ package main
import ( import (
"bufio" "bufio"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"fmt" "fmt"
"os" "os"
) )

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"encoding/json" "encoding/json"
"fmt" "fmt"
"os" "os"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"fmt" "fmt"
"runtime" "runtime"
) )

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"code.google.com/p/weed-fs/go/weed/weed_server" "github.com/chrislusf/weed-fs/go/weed/weed_server"
"net/http" "net/http"
"os" "os"
"runtime" "runtime"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"net/http" "net/http"
"testing" "testing"
"time" "time"

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"flag" "flag"
"fmt" "fmt"
"io" "io"

View File

@ -2,11 +2,11 @@ package weed_server
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/stats" "github.com/chrislusf/weed-fs/go/stats"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"fmt" "fmt"
"net" "net"

View File

@ -1,8 +1,8 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/filer" "github.com/chrislusf/weed-fs/go/filer"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"net/http" "net/http"
"strconv" "strconv"
) )

View File

@ -1,9 +1,9 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb"

View File

@ -1,7 +1,7 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"net/http" "net/http"
) )

View File

@ -1,10 +1,10 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/sequence" "github.com/chrislusf/weed-fs/go/sequence"
"code.google.com/p/weed-fs/go/topology" "github.com/chrislusf/weed-fs/go/topology"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"github.com/goraft/raft" "github.com/goraft/raft"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"net/http" "net/http"

View File

@ -1,9 +1,9 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/stats" "github.com/chrislusf/weed-fs/go/stats"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"

View File

@ -2,11 +2,11 @@ package weed_server
import ( import (
proto "code.google.com/p/goprotobuf/proto" proto "code.google.com/p/goprotobuf/proto"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/topology" "github.com/chrislusf/weed-fs/go/topology"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"encoding/json" "encoding/json"
"errors" "errors"
"io/ioutil" "io/ioutil"

View File

@ -2,8 +2,8 @@ package weed_server
import ( import (
"bytes" "bytes"
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/topology" "github.com/chrislusf/weed-fs/go/topology"
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"

View File

@ -1,8 +1,8 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"encoding/json" "encoding/json"
"github.com/goraft/raft" "github.com/goraft/raft"
"io/ioutil" "io/ioutil"

View File

@ -1,8 +1,8 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"math/rand" "math/rand"
"net/http" "net/http"
"strconv" "strconv"

View File

@ -1,12 +1,12 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/images" "github.com/chrislusf/weed-fs/go/images"
"code.google.com/p/weed-fs/go/operation" "github.com/chrislusf/weed-fs/go/operation"
"code.google.com/p/weed-fs/go/stats" "github.com/chrislusf/weed-fs/go/stats"
"code.google.com/p/weed-fs/go/storage" "github.com/chrislusf/weed-fs/go/storage"
"code.google.com/p/weed-fs/go/topology" "github.com/chrislusf/weed-fs/go/topology"
"io" "io"
"mime" "mime"
"mime/multipart" "mime/multipart"

View File

@ -1,9 +1,9 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"code.google.com/p/weed-fs/go/stats" "github.com/chrislusf/weed-fs/go/stats"
"code.google.com/p/weed-fs/go/util" "github.com/chrislusf/weed-fs/go/util"
"net/http" "net/http"
"path/filepath" "path/filepath"
) )

View File

@ -1,7 +1,7 @@
package weed_server package weed_server
import ( import (
"code.google.com/p/weed-fs/go/glog" "github.com/chrislusf/weed-fs/go/glog"
"net/http" "net/http"
) )