Browse Source

directory structure change to work with glide

glide has its own requirements. My previous workaround caused me some
code checkin errors. Need to fix this.
pull/312/head
Chris Lu 9 years ago
parent
commit
5ce6bbf076
  1. 4
      .gitignore
  2. 2
      Dockerfile.go_build
  3. 6
      README.md
  4. 16
      go/weed/glide.yaml
  5. 6
      unmaintained/fix_dat/fix_dat.go
  6. 4
      unmaintained/see_idx/see_idx.go
  7. 6
      weed/command/backup.go
  8. 10
      weed/command/benchmark.go
  9. 19
      weed/command/command.go
  10. 6
      weed/command/compact.go
  11. 6
      weed/command/download.go
  12. 6
      weed/command/export.go
  13. 8
      weed/command/filer.go
  14. 6
      weed/command/fix.go
  15. 8
      weed/command/master.go
  16. 2
      weed/command/mount.go
  17. 2
      weed/command/mount_notsupported.go
  18. 10
      weed/command/mount_std.go
  19. 10
      weed/command/server.go
  20. 4
      weed/command/shell.go
  21. 2
      weed/command/signal_handling.go
  22. 2
      weed/command/signal_handling_notsupported.go
  23. 6
      weed/command/upload.go
  24. 4
      weed/command/version.go
  25. 10
      weed/command/volume.go
  26. 4
      weed/command/volume_test.go
  27. 0
      weed/compress/compression_test.go
  28. 0
      weed/compress/delta_binary_pack32.go
  29. 2
      weed/filer/cassandra_store/cassandra_store.go
  30. 0
      weed/filer/cassandra_store/schema.cql
  31. 2
      weed/filer/client_operations.go
  32. 0
      weed/filer/embedded_filer/design.txt
  33. 2
      weed/filer/embedded_filer/directory.go
  34. 4
      weed/filer/embedded_filer/directory_in_map.go
  35. 0
      weed/filer/embedded_filer/directory_test.go
  36. 4
      weed/filer/embedded_filer/filer_embedded.go
  37. 4
      weed/filer/embedded_filer/files_in_leveldb.go
  38. 0
      weed/filer/filer.go
  39. 2
      weed/filer/flat_namespace/flat_namespace_filer.go
  40. 0
      weed/filer/flat_namespace/flat_namespace_store.go
  41. 0
      weed/filer/redis_store/redis_store.go
  42. 32
      weed/glide.lock
  43. 31
      weed/glide.yaml
  44. 0
      weed/glog/LICENSE
  45. 0
      weed/glog/README
  46. 0
      weed/glog/convenient_api.go
  47. 0
      weed/glog/glog.go
  48. 0
      weed/glog/glog_file.go
  49. 0
      weed/glog/glog_test.go
  50. 0
      weed/images/favicon.go
  51. 0
      weed/images/favicon/favicon.ico
  52. 0
      weed/images/orientation.go
  53. 0
      weed/images/orientation_test.go
  54. 0
      weed/images/preprocess.go
  55. 2
      weed/images/resizing.go
  56. 0
      weed/images/sample1.jpg
  57. 4
      weed/operation/assign_file_id.go
  58. 4
      weed/operation/chunked_file.go
  59. 2
      weed/operation/compress.go
  60. 0
      weed/operation/data_struts.go
  61. 4
      weed/operation/delete_content.go
  62. 4
      weed/operation/list_masters.go
  63. 2
      weed/operation/lookup.go
  64. 2
      weed/operation/lookup_vid_cache.go
  65. 0
      weed/operation/lookup_vid_cache_test.go
  66. 4
      weed/operation/submit.go
  67. 4
      weed/operation/sync_volume.go
  68. 0
      weed/operation/system_message.pb.go
  69. 0
      weed/operation/system_message_test.go
  70. 4
      weed/operation/upload_content.go
  71. 0
      weed/proto/Makefile
  72. 0
      weed/proto/system_message.proto
  73. 2
      weed/security/guard.go
  74. 2
      weed/security/jwt.go
  75. 0
      weed/sequence/memory_sequencer.go
  76. 0
      weed/sequence/sequence.go
  77. 12
      weed/server/common.go
  78. 14
      weed/server/filer_server.go
  79. 8
      weed/server/filer_server_handlers.go
  80. 2
      weed/server/filer_server_handlers_admin.go
  81. 10
      weed/server/master_server.go
  82. 6
      weed/server/master_server_handlers.go
  83. 10
      weed/server/master_server_handlers_admin.go
  84. 6
      weed/server/master_server_handlers_ui.go
  85. 0
      weed/server/master_ui/templates.go
  86. 4
      weed/server/raft_server.go
  87. 4
      weed/server/raft_server_handlers.go
  88. 6
      weed/server/volume_server.go
  89. 2
      weed/server/volume_server_handlers.go
  90. 6
      weed/server/volume_server_handlers_admin.go
  91. 0
      weed/server/volume_server_handlers_helper.go
  92. 10
      weed/server/volume_server_handlers_read.go
  93. 6
      weed/server/volume_server_handlers_sync.go
  94. 6
      weed/server/volume_server_handlers_ui.go
  95. 2
      weed/server/volume_server_handlers_vacuum.go
  96. 8
      weed/server/volume_server_handlers_write.go
  97. 0
      weed/server/volume_server_ui/templates.go
  98. 0
      weed/stats/disk.go
  99. 0
      weed/stats/disk_notsupported.go
  100. 0
      weed/stats/disk_supported.go

4
.gitignore

@ -1,5 +1,5 @@
go/weed/.goxc*
go/weed/vendor
.goxc*
vendor
tags
*.swp
### OSX template

2
Dockerfile.go_build

@ -1,5 +1,5 @@
FROM cydev/go
RUN go get github.com/chrislusf/seaweedfs/go/weed
RUN go get github.com/chrislusf/seaweedfs/weed/weed
EXPOSE 8080
EXPOSE 9333
VOLUME /data

6
README.md

@ -1,7 +1,7 @@
# SeaweedFS
[![Build Status](https://travis-ci.org/chrislusf/seaweedfs.svg?branch=master)](https://travis-ci.org/chrislusf/seaweedfs)
[![GoDoc](https://godoc.org/github.com/chrislusf/seaweedfs/go?status.svg)](https://godoc.org/github.com/chrislusf/seaweedfs/go)
[![GoDoc](https://godoc.org/github.com/chrislusf/seaweedfs/weed?status.svg)](https://godoc.org/github.com/chrislusf/seaweedfs/weed)
[![Wiki](https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/chrislusf/seaweedfs/wiki)
![SeaweedFS Logo](https://raw.githubusercontent.com/chrislusf/seaweedfs/master/note/seaweedfs.png)
@ -287,11 +287,11 @@ http://mercurial.selenic.com/downloads
step 3: download, compile, and install the project by executing the following command
go get github.com/chrislusf/seaweedfs/go/weed
go get github.com/chrislusf/seaweedfs/weed/weed
once this is done, you should see the executable "weed" under $GOPATH/bin
step 4: after you modify your code locally, you could start a local build by calling "go install" under $GOPATH/src/github.com/chrislusf/seaweedfs/go/weed
step 4: after you modify your code locally, you could start a local build by calling "go install" under $GOPATH/src/github.com/chrislusf/seaweedfs/weed/weed
## Disk Related topics ##

16
go/weed/glide.yaml

@ -1,16 +0,0 @@
package: github.com/chrislusf/seaweedfs/go/weed
import:
- package: bazil.org/fuse
subpackages:
- fs
- package: github.com/chrislusf/raft
- package: github.com/golang/protobuf
subpackages:
- proto
- package: github.com/gorilla/mux
- package: github.com/syndtr/goleveldb
subpackages:
- leveldb
- package: golang.org/x/net
subpackages:
- context

6
unmaintained/fix_dat/fix_dat.go

@ -8,9 +8,9 @@ import (
"path"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
)
var (

4
unmaintained/see_idx/see_idx.go

@ -6,8 +6,8 @@ import (
"path"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
)
var (

6
go/weed/backup.go → weed/command/backup.go

@ -1,10 +1,10 @@
package main
package command
import (
"fmt"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/storage"
)
var (

10
go/weed/benchmark.go → weed/command/benchmark.go

@ -1,4 +1,4 @@
package main
package command
import (
"bufio"
@ -14,10 +14,10 @@ import (
"sync"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/util"
)
type BenchmarkOptions struct {

19
go/weed/command.go → weed/command/command.go

@ -1,4 +1,4 @@
package main
package command
import (
"flag"
@ -7,6 +7,23 @@ import (
"strings"
)
var Commands = []*Command{
cmdBenchmark,
cmdBackup,
cmdCompact,
cmdFix,
cmdServer,
cmdMaster,
cmdFiler,
cmdUpload,
cmdDownload,
cmdShell,
cmdVersion,
cmdVolume,
cmdExport,
cmdMount,
}
type Command struct {
// Run runs the command.
// The args are the arguments after the command name.

6
go/weed/compact.go → weed/command/compact.go

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

6
go/weed/download.go → weed/command/download.go

@ -1,4 +1,4 @@
package main
package command
import (
"fmt"
@ -8,8 +8,8 @@ import (
"path"
"strings"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/util"
)
var (

6
go/weed/export.go → weed/command/export.go

@ -1,4 +1,4 @@
package main
package command
import (
"archive/tar"
@ -12,8 +12,8 @@ import (
"text/template"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
)
const (

8
go/weed/filer.go → weed/command/filer.go

@ -1,4 +1,4 @@
package main
package command
import (
"net/http"
@ -6,9 +6,9 @@ import (
"strconv"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/go/weed/weed_server"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/server"
"github.com/chrislusf/seaweedfs/weed/util"
)
var (

6
go/weed/fix.go → weed/command/fix.go

@ -1,12 +1,12 @@
package main
package command
import (
"os"
"path"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
)
func init() {

8
go/weed/master.go → weed/command/master.go

@ -1,4 +1,4 @@
package main
package command
import (
"net/http"
@ -8,9 +8,9 @@ import (
"strings"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/go/weed/weed_server"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/server"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/gorilla/mux"
)

2
go/weed/mount.go → weed/command/mount.go

@ -1,4 +1,4 @@
package main
package command
type MountOptions struct {
filer *string

2
go/weed/mount_notsupported.go → weed/command/mount_notsupported.go

@ -1,7 +1,7 @@
// +build !linux
// +build !darwin
package main
package command
import (
"fmt"

10
go/weed/mount_std.go → weed/command/mount_std.go

@ -1,6 +1,6 @@
// +build linux darwin
package main
package command
import (
"fmt"
@ -8,10 +8,10 @@ import (
"bazil.org/fuse"
"bazil.org/fuse/fs"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
"golang.org/x/net/context"
)

10
go/weed/server.go → weed/command/server.go

@ -1,4 +1,4 @@
package main
package command
import (
"net/http"
@ -10,10 +10,10 @@ import (
"sync"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/go/weed/weed_server"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/server"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/gorilla/mux"
)

4
go/weed/shell.go → weed/command/shell.go

@ -1,11 +1,11 @@
package main
package command
import (
"bufio"
"fmt"
"os"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
func init() {

2
go/weed/signal_handling.go → weed/command/signal_handling.go

@ -1,6 +1,6 @@
// +build !plan9
package main
package command
import (
"os"

2
go/weed/signal_handling_notsupported.go → weed/command/signal_handling_notsupported.go

@ -1,6 +1,6 @@
// +build plan9
package main
package command
func OnInterrupt(fn func()) {
}

6
go/weed/upload.go → weed/command/upload.go

@ -1,4 +1,4 @@
package main
package command
import (
"encoding/json"
@ -6,8 +6,8 @@ import (
"os"
"path/filepath"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/security"
)
var (

4
go/weed/version.go → weed/command/version.go

@ -1,10 +1,10 @@
package main
package command
import (
"fmt"
"runtime"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
)
var cmdVersion = &Command{

10
go/weed/volume.go → weed/command/volume.go

@ -1,4 +1,4 @@
package main
package command
import (
"net/http"
@ -8,10 +8,10 @@ import (
"strings"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/go/weed/weed_server"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/server"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
)
var (

4
go/weed/volume_test.go → weed/command/volume_test.go

@ -1,11 +1,11 @@
package main
package command
import (
"net/http"
"testing"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
func TestXYZ(t *testing.T) {

0
go/compress/compression_test.go → weed/compress/compression_test.go

0
go/compress/delta_binary_pack32.go → weed/compress/delta_binary_pack32.go

2
go/filer/cassandra_store/cassandra_store.go → weed/filer/cassandra_store/cassandra_store.go

@ -3,7 +3,7 @@ package cassandra_store
import (
"fmt"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/gocql/gocql"
)

0
go/filer/cassandra_store/schema.cql → weed/filer/cassandra_store/schema.cql

2
go/filer/client_operations.go → weed/filer/client_operations.go

@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
"net/url"
)

0
go/filer/embedded_filer/design.txt → weed/filer/embedded_filer/design.txt

2
go/filer/embedded_filer/directory.go → weed/filer/embedded_filer/directory.go

@ -1,7 +1,7 @@
package embedded_filer
import (
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/weed/filer"
)
type DirectoryManager interface {

4
go/filer/embedded_filer/directory_in_map.go → weed/filer/embedded_filer/directory_in_map.go

@ -10,8 +10,8 @@ import (
"strings"
"sync"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/util"
)
var writeLock sync.Mutex //serialize changes to dir.log

0
go/filer/embedded_filer/directory_test.go → weed/filer/embedded_filer/directory_test.go

4
go/filer/embedded_filer/filer_embedded.go → weed/filer/embedded_filer/filer_embedded.go

@ -6,8 +6,8 @@ import (
"path/filepath"
"strings"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/operation"
)
type FilerEmbedded struct {

4
go/filer/embedded_filer/files_in_leveldb.go → weed/filer/embedded_filer/files_in_leveldb.go

@ -3,8 +3,8 @@ package embedded_filer
import (
"bytes"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/util"
)

0
go/filer/filer.go → weed/filer/filer.go

2
go/filer/flat_namespace/flat_namespace_filer.go → weed/filer/flat_namespace/flat_namespace_filer.go

@ -3,7 +3,7 @@ package flat_namespace
import (
"errors"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/weed/filer"
)
type FlatNamespaceFiler struct {

0
go/filer/flat_namespace/flat_namespace_store.go → weed/filer/flat_namespace/flat_namespace_store.go

0
go/filer/redis_store/redis_store.go → weed/filer/redis_store/redis_store.go

32
go/weed/glide.lock → weed/glide.lock

@ -1,5 +1,5 @@
hash: 97328ff2a0b9e682660bd51e424a7f850388df96bd153fa6f9ee419c993065c1
updated: 2016-05-24T10:27:49.252798956-07:00
hash: fc2f4ccfa5d703b62b9c93047bae2295e6926ce1603c2164510c9010ff829945
updated: 2016-06-02T12:26:29.018990826-07:00
imports:
- name: bazil.org/fuse
version: 5d02b06737b3b3c2e6a44e03348b6f2b44aa6835
@ -9,33 +9,33 @@ imports:
- name: github.com/boltdb/bolt
version: dfb21201d9270c1082d5fb0f07f500311ff72f18
- name: github.com/chrislusf/raft
version: 90f631ee823c83f594f27257bab64911190856af
version: 5f7ddd8f479583daf05879d3d3b174aa202c8fb7
subpackages:
- protobuf
- name: github.com/dgrijalva/jwt-go
version: 40bd0f3b4891a9d7f121bfb7b8e8b0525625e262
version: 9b486c879bab3fde556ce8c27d9a2bb05d5b2c60
- name: github.com/disintegration/imaging
version: d8bbae1de109b518dabc98c6c1633eb358c148a4
- name: github.com/gocql/gocql
version: 7218e81e87ca6f3d2285c56e0aae80bc0d8fb655
version: b7b8a0e04b0cb0ca0b379421c58ec6fab9939b85
subpackages:
- internal/lru
- internal/murmur
- internal/streams
- name: github.com/gogo/protobuf
version: c18eea6ad611eecf94a9ba38471f59706199409e
version: 7883e1468d48d969e1c3ce4bcde89b6a7dd4adc4
subpackages:
- proto
- name: github.com/golang/protobuf
version: e51d002c610dbe8c136679a67a6ded5df4d49b5c
version: 3b06fc7a4cad73efce5fe6217ab6c33e7231ab4a
subpackages:
- proto
- name: github.com/golang/snappy
version: d6668316e43571d7dde95be6fd077f96de002f8b
version: d9eb7a3d35ec988b8585d4a0068e462c27d28380
- name: github.com/gorilla/context
version: a8d44e7d8e4d532b6a27a02dd82abb31cc1b01bd
version: aed02d124ae4a0e94fea4541c8effd05bf0c8296
- name: github.com/gorilla/mux
version: 9c19ed558d5df4da88e2ade9c8940d742aef0e7e
version: bd09be08ed4377796d312df0a45314e11b8f5dc1
- name: github.com/hailocab/go-hostpool
version: e80d13ce29ede4452c43dea11e79b9bc8a15b478
- name: github.com/hashicorp/golang-lru
@ -44,6 +44,12 @@ imports:
- simplelru
- name: github.com/klauspost/crc32
version: 19b0b332c9e4516a6370a0456e6182c3b5036720
- name: github.com/reducedb/encoding
version: e31efcfdf1b19f4698709a6f522feaf101b1b1f4
subpackages:
- cursor
- delta/bp32
- bitpacking
- name: github.com/rwcarlsen/goexif
version: 709fab3d192d7c62f86043caff1e7e3fb0f42bd8
subpackages:
@ -65,17 +71,17 @@ imports:
- leveldb/storage
- leveldb/table
- name: golang.org/x/image
version: f551d3a6b7fc11df315ad9e18b404280680f8bec
version: 97680175a5267bb8b31f1923e7a66df98013b11a
subpackages:
- bmp
- tiff
- tiff/lzw
- name: golang.org/x/net
version: 0c607074acd38c5f23d1344dfe74c977464d1257
version: c4c3ea71919de159c9e246d7be66deb7f0a39a58
subpackages:
- context
- name: golang.org/x/sys
version: d4feaf1a7e61e1d9e79e6c4e76c6349e9cab0a03
version: 076b546753157f758b316e59bcb51e6807c04057
subpackages:
- unix
- name: gopkg.in/bufio.v1

31
weed/glide.yaml

@ -0,0 +1,31 @@
package: github.com/chrislusf/seaweedfs/weed
import:
- package: bazil.org/fuse
subpackages:
- fs
- package: github.com/boltdb/bolt
- package: github.com/chrislusf/raft
- package: github.com/dgrijalva/jwt-go
- package: github.com/disintegration/imaging
- package: github.com/gocql/gocql
- package: github.com/golang/protobuf
subpackages:
- proto
- package: github.com/gorilla/mux
- package: github.com/hashicorp/golang-lru
- package: github.com/klauspost/crc32
- package: github.com/reducedb/encoding
subpackages:
- cursor
- delta/bp32
- package: github.com/rwcarlsen/goexif
subpackages:
- exif
- package: github.com/syndtr/goleveldb
subpackages:
- leveldb
- leveldb/util
- package: golang.org/x/net
subpackages:
- context
- package: gopkg.in/redis.v2

0
go/glog/LICENSE → weed/glog/LICENSE

0
go/glog/README → weed/glog/README

0
go/glog/convenient_api.go → weed/glog/convenient_api.go

0
go/glog/glog.go → weed/glog/glog.go

0
go/glog/glog_file.go → weed/glog/glog_file.go

0
go/glog/glog_test.go → weed/glog/glog_test.go

0
go/images/favicon.go → weed/images/favicon.go

0
go/images/favicon/favicon.ico → weed/images/favicon/favicon.ico

0
go/images/orientation.go → weed/images/orientation.go

0
go/images/orientation_test.go → weed/images/orientation_test.go

0
go/images/preprocess.go → weed/images/preprocess.go

2
go/images/resizing.go → weed/images/resizing.go

@ -7,7 +7,7 @@ import (
"image/jpeg"
"image/png"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/disintegration/imaging"
)

0
go/images/sample1.jpg → weed/images/sample1.jpg

Before

Width: 2592  |  Height: 1936  |  Size: 2.0 MiB

After

Width: 2592  |  Height: 1936  |  Size: 2.0 MiB

4
go/operation/assign_file_id.go → weed/operation/assign_file_id.go

@ -7,8 +7,8 @@ import (
"net/url"
"strconv"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
type AssignResult struct {

4
go/operation/chunked_file.go → weed/operation/chunked_file.go

@ -10,8 +10,8 @@ import (
"sync"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
var (

2
go/operation/compress.go → weed/operation/compress.go

@ -7,7 +7,7 @@ import (
"io/ioutil"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
/*

0
go/operation/data_struts.go → weed/operation/data_struts.go

4
go/operation/delete_content.go → weed/operation/delete_content.go

@ -10,8 +10,8 @@ import (
"net/http"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/util"
)
type DeleteResult struct {

4
go/operation/list_masters.go → weed/operation/list_masters.go

@ -3,8 +3,8 @@ package operation
import (
"encoding/json"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
type ClusterStatusResult struct {

2
go/operation/lookup.go → weed/operation/lookup.go

@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/util"
)
type Location struct {

2
go/operation/lookup_vid_cache.go → weed/operation/lookup_vid_cache.go

@ -5,7 +5,7 @@ import (
"strconv"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
type VidInfo struct {

0
go/operation/lookup_vid_cache_test.go → weed/operation/lookup_vid_cache_test.go

4
go/operation/submit.go → weed/operation/submit.go

@ -10,8 +10,8 @@ import (
"strconv"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
)
type FilePart struct {

4
go/operation/sync_volume.go → weed/operation/sync_volume.go

@ -5,8 +5,8 @@ import (
"fmt"
"net/url"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/util"
)
type SyncVolumeResponse struct {

0
go/operation/system_message.pb.go → weed/operation/system_message.pb.go

0
go/operation/system_message_test.go → weed/operation/system_message_test.go

4
go/operation/upload_content.go → weed/operation/upload_content.go

@ -14,8 +14,8 @@ import (
"path/filepath"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
)
type UploadResult struct {

0
go/proto/Makefile → weed/proto/Makefile

0
go/proto/system_message.proto → weed/proto/system_message.proto

2
go/security/guard.go → weed/security/guard.go

@ -7,7 +7,7 @@ import (
"net/http"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
var (

2
go/security/jwt.go → weed/security/jwt.go

@ -6,7 +6,7 @@ import (
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
jwt "github.com/dgrijalva/jwt-go"
)

0
go/sequence/memory_sequencer.go → weed/sequence/memory_sequencer.go

0
go/sequence/sequence.go → weed/sequence/sequence.go

12
go/weed/weed_server/common.go → weed/server/common.go

@ -11,12 +11,12 @@ import (
"strings"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/go/stats"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/stats"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
)
var serverStats *stats.ServerStats

14
go/weed/weed_server/filer_server.go → weed/server/filer_server.go

@ -4,13 +4,13 @@ import (
"net/http"
"strconv"
"github.com/chrislusf/seaweedfs/go/filer"
"github.com/chrislusf/seaweedfs/go/filer/cassandra_store"
"github.com/chrislusf/seaweedfs/go/filer/embedded_filer"
"github.com/chrislusf/seaweedfs/go/filer/flat_namespace"
"github.com/chrislusf/seaweedfs/go/filer/redis_store"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/weed/filer"
"github.com/chrislusf/seaweedfs/weed/filer/cassandra_store"
"github.com/chrislusf/seaweedfs/weed/filer/embedded_filer"
"github.com/chrislusf/seaweedfs/weed/filer/flat_namespace"
"github.com/chrislusf/seaweedfs/weed/filer/redis_store"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
)
type FilerServer struct {

8
go/weed/weed_server/filer_server_handlers.go → weed/server/filer_server_handlers.go

@ -11,10 +11,10 @@ import (
"strconv"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/syndtr/goleveldb/leveldb"
)

2
go/weed/weed_server/filer_server_handlers_admin.go → weed/server/filer_server_handlers_admin.go

@ -3,7 +3,7 @@ package weed_server
import (
"net/http"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
/*

10
go/weed/weed_server/master_server.go → weed/server/master_server.go

@ -8,11 +8,11 @@ import (
"sync"
"github.com/chrislusf/raft"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/go/sequence"
"github.com/chrislusf/seaweedfs/go/topology"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/sequence"
"github.com/chrislusf/seaweedfs/weed/topology"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/gorilla/mux"
)

6
go/weed/weed_server/master_server_handlers.go → weed/server/master_server_handlers.go

@ -6,9 +6,9 @@ import (
"strconv"
"strings"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/stats"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/stats"
"github.com/chrislusf/seaweedfs/weed/storage"
)
func (ms *MasterServer) lookupVolumeId(vids []string, collection string) (volumeLocations map[string]operation.LookupResult) {

10
go/weed/weed_server/master_server_handlers_admin.go → weed/server/master_server_handlers_admin.go

@ -10,11 +10,11 @@ import (
"strconv"
"strings"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/topology"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/topology"
"github.com/chrislusf/seaweedfs/weed/util"
"github.com/golang/protobuf/proto"
)

6
go/weed/weed_server/master_server_handlers_ui.go → weed/server/master_server_handlers_ui.go

@ -3,9 +3,9 @@ package weed_server
import (
"net/http"
"github.com/chrislusf/seaweedfs/go/stats"
"github.com/chrislusf/seaweedfs/go/util"
ui "github.com/chrislusf/seaweedfs/go/weed/weed_server/master_ui"
"github.com/chrislusf/seaweedfs/weed/stats"
"github.com/chrislusf/seaweedfs/weed/util"
ui "github.com/chrislusf/seaweedfs/weed/server/master_ui"
)
func (ms *MasterServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) {

0
go/weed/weed_server/master_ui/templates.go → weed/server/master_ui/templates.go

4
go/weed/weed_server/raft_server.go → weed/server/raft_server.go

@ -17,8 +17,8 @@ import (
"time"
"github.com/chrislusf/raft"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/topology"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/topology"
"github.com/gorilla/mux"
)

4
go/weed/weed_server/raft_server_handlers.go → weed/server/raft_server_handlers.go

@ -7,8 +7,8 @@ import (
"strings"
"github.com/chrislusf/raft"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
)
// Handles incoming RAFT joins.

6
go/weed/weed_server/volume_server.go → weed/server/volume_server.go

@ -6,9 +6,9 @@ import (
"sync"
"time"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/security"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
"github.com/chrislusf/seaweedfs/weed/storage"
)
type VolumeServer struct {

2
go/weed/weed_server/volume_server_handlers.go → weed/server/volume_server_handlers.go

@ -3,7 +3,7 @@ package weed_server
import (
"net/http"
"github.com/chrislusf/seaweedfs/go/stats"
"github.com/chrislusf/seaweedfs/weed/stats"
)
/*

6
go/weed/weed_server/volume_server_handlers_admin.go → weed/server/volume_server_handlers_admin.go

@ -4,9 +4,9 @@ import (
"net/http"
"path/filepath"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/stats"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/stats"
"github.com/chrislusf/seaweedfs/weed/util"
)
func (vs *VolumeServer) statusHandler(w http.ResponseWriter, r *http.Request) {

0
go/weed/weed_server/volume_server_handlers_helper.go → weed/server/volume_server_handlers_helper.go

10
go/weed/weed_server/volume_server_handlers_read.go → weed/server/volume_server_handlers_read.go

@ -13,11 +13,11 @@ import (
"net/url"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/images"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/images"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
)
var fileNameEscaper = strings.NewReplacer("\\", "\\\\", "\"", "\\\"")

6
go/weed/weed_server/volume_server_handlers_sync.go → weed/server/volume_server_handlers_sync.go

@ -4,9 +4,9 @@ import (
"fmt"
"net/http"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/util"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/util"
)
func (vs *VolumeServer) getVolumeSyncStatusHandler(w http.ResponseWriter, r *http.Request) {

6
go/weed/weed_server/volume_server_handlers_ui.go → weed/server/volume_server_handlers_ui.go

@ -5,9 +5,9 @@ import (
"path/filepath"
"time"
"github.com/chrislusf/seaweedfs/go/stats"
"github.com/chrislusf/seaweedfs/go/util"
ui "github.com/chrislusf/seaweedfs/go/weed/weed_server/volume_server_ui"
"github.com/chrislusf/seaweedfs/weed/stats"
"github.com/chrislusf/seaweedfs/weed/util"
ui "github.com/chrislusf/seaweedfs/weed/server/volume_server_ui"
)
func (vs *VolumeServer) uiStatusHandler(w http.ResponseWriter, r *http.Request) {

2
go/weed/weed_server/volume_server_handlers_vacuum.go → weed/server/volume_server_handlers_vacuum.go

@ -3,7 +3,7 @@ package weed_server
import (
"net/http"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/weed/glog"
)
func (vs *VolumeServer) vacuumVolumeCheckHandler(w http.ResponseWriter, r *http.Request) {

8
go/weed/weed_server/volume_server_handlers_write.go → weed/server/volume_server_handlers_write.go

@ -5,10 +5,10 @@ import (
"fmt"
"net/http"
"github.com/chrislusf/seaweedfs/go/glog"
"github.com/chrislusf/seaweedfs/go/operation"
"github.com/chrislusf/seaweedfs/go/storage"
"github.com/chrislusf/seaweedfs/go/topology"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/operation"
"github.com/chrislusf/seaweedfs/weed/storage"
"github.com/chrislusf/seaweedfs/weed/topology"
)
func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) {

0
go/weed/weed_server/volume_server_ui/templates.go → weed/server/volume_server_ui/templates.go

0
go/stats/disk.go → weed/stats/disk.go

0
go/stats/disk_notsupported.go → weed/stats/disk_notsupported.go

0
go/stats/disk_supported.go → weed/stats/disk_supported.go

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save