mv internal lib

This commit is contained in:
Jakob Borg 2015-08-06 11:29:25 +02:00
parent 0a803891a4
commit 7705a6c1f1
197 changed files with 158 additions and 158 deletions

View File

@ -81,9 +81,9 @@ func main() {
install("./cmd/...", tags)
vet("./cmd/syncthing")
vet("./internal/...")
vet("./lib/...")
lint("./cmd/syncthing")
lint("./internal/...")
lint("./lib/...")
return
}
@ -143,11 +143,11 @@ func main() {
case "vet":
vet("./cmd/syncthing")
vet("./internal/...")
vet("./lib/...")
case "lint":
lint("./cmd/syncthing")
lint("./internal/...")
lint("./lib/...")
default:
log.Fatalf("Unknown command %q", cmd)
@ -405,11 +405,11 @@ func setBuildEnv() {
func assets() {
setBuildEnv()
runPipe("internal/auto/gui.files.go", "go", "run", "cmd/genassets/main.go", "gui")
runPipe("lib/auto/gui.files.go", "go", "run", "cmd/genassets/main.go", "gui")
}
func xdr() {
runPrint("go", "generate", "./internal/discover", "./internal/db")
runPrint("go", "generate", "./lib/discover", "./lib/db")
}
func translate() {

View File

@ -46,7 +46,7 @@ case "${1:-default}" in
prerelease)
go run build.go transifex
git add -A gui/assets/ internal/auto/
git add -A gui/assets/ lib/auto/
pushd man ; ./refresh.sh ; popd
git add -A man
echo

View File

@ -30,7 +30,7 @@ print-missing-authors() {
}
print-missing-copyright() {
find . -name \*.go | xargs egrep -L 'Copyright|automatically generated' | grep -v Godeps | grep -v internal/auto/
find . -name \*.go | xargs egrep -L 'Copyright|automatically generated' | grep -v Godeps | grep -v lib/auto/
}
authors=$(print-missing-authors)

View File

@ -16,7 +16,7 @@ import (
"os"
"path/filepath"
"github.com/syncthing/syncthing/internal/symlinks"
"github.com/syncthing/syncthing/lib/symlinks"
)
func main() {

View File

@ -13,7 +13,7 @@ import (
"path/filepath"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/scanner"
"github.com/syncthing/syncthing/lib/scanner"
)
func main() {

View File

@ -12,7 +12,7 @@ import (
"os"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/discover"
"github.com/syncthing/syncthing/lib/discover"
)
func main() {

View File

@ -14,7 +14,7 @@ import (
"os"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/db"
"github.com/syncthing/syncthing/lib/db"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt"
)

View File

@ -10,7 +10,7 @@ import (
"encoding/json"
"io"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/lib/events"
)
// The auditSvc subscribes to events and writes these in JSON format, one

View File

@ -12,7 +12,7 @@ import (
"testing"
"time"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/lib/events"
)
func TestAuditService(t *testing.T) {

View File

@ -15,9 +15,9 @@ import (
"time"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/model"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/model"
"github.com/thejerf/suture"
)

View File

@ -26,15 +26,15 @@ import (
"github.com/calmh/logger"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/auto"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/db"
"github.com/syncthing/syncthing/internal/discover"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/model"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/internal/upgrade"
"github.com/syncthing/syncthing/lib/auto"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/db"
"github.com/syncthing/syncthing/lib/discover"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/model"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/sync"
"github.com/syncthing/syncthing/lib/upgrade"
"github.com/vitrun/qart/qr"
"golang.org/x/crypto/bcrypt"
)

View File

@ -14,8 +14,8 @@ import (
"strings"
"time"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/sync"
"golang.org/x/crypto/bcrypt"
)

View File

@ -13,8 +13,8 @@ import (
"os"
"strings"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/sync"
)
var csrfTokens []string

View File

@ -13,7 +13,7 @@ import (
"strings"
"time"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/lib/osutil"
)
type locationEnum string

View File

@ -28,14 +28,14 @@ import (
"github.com/calmh/logger"
"github.com/juju/ratelimit"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/db"
"github.com/syncthing/syncthing/internal/discover"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/model"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/internal/symlinks"
"github.com/syncthing/syncthing/internal/upgrade"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/db"
"github.com/syncthing/syncthing/lib/discover"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/model"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/symlinks"
"github.com/syncthing/syncthing/lib/upgrade"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/opt"

View File

@ -11,9 +11,9 @@ import (
"testing"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/db"
"github.com/syncthing/syncthing/internal/model"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/db"
"github.com/syncthing/syncthing/lib/model"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/storage"

View File

@ -17,8 +17,8 @@ import (
"syscall"
"time"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/sync"
)
var (

View File

@ -9,9 +9,9 @@ package main
import (
"time"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/model"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/model"
"github.com/syncthing/syncthing/lib/sync"
"github.com/thejerf/suture"
)

View File

@ -10,8 +10,8 @@ import (
"fmt"
"time"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/upnp"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/upnp"
)
// The UPnP service runs a loop for discovery of IGDs (Internet Gateway

View File

@ -17,8 +17,8 @@ import (
"runtime"
"time"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/model"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/model"
"github.com/thejerf/suture"
)

View File

@ -9,7 +9,7 @@ package main
import (
"fmt"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/lib/events"
)
// The verbose logging service subscribes to events and prints these in

View File

@ -12,7 +12,7 @@ import (
"io/ioutil"
"testing"
"github.com/syncthing/syncthing/internal/auto"
"github.com/syncthing/syncthing/lib/auto"
)
func TestAssets(t *testing.T) {

View File

@ -20,7 +20,7 @@ import (
"strings"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/lib/osutil"
"golang.org/x/crypto/bcrypt"
)

View File

@ -10,9 +10,9 @@ import (
"os"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/sync"
)
// The Committer interface is implemented by objects that need to know about

View File

@ -19,9 +19,9 @@ import (
"sort"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/sync"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/util"

View File

@ -10,7 +10,7 @@ import (
"testing"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/lib/config"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/storage"

View File

@ -15,7 +15,7 @@ import (
"testing"
"time"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/sync"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt"

View File

@ -16,7 +16,7 @@ import (
"sort"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/sync"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/iterator"
"github.com/syndtr/goleveldb/leveldb/opt"

View File

@ -14,8 +14,8 @@ package db
import (
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/sync"
"github.com/syndtr/goleveldb/leveldb"
)

View File

@ -14,7 +14,7 @@ import (
"testing"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/db"
"github.com/syncthing/syncthing/lib/db"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/storage"
)

View File

@ -15,7 +15,7 @@ import (
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/sync"
)
var device protocol.DeviceID

View File

@ -15,7 +15,7 @@ import (
"time"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/sync"
)
func init() {

View File

@ -17,9 +17,9 @@ import (
"time"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/beacon"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/beacon"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/sync"
)
type Discoverer struct {

View File

@ -12,7 +12,7 @@ import (
stdsync "sync"
"time"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/sync"
)
type EventType int

View File

@ -11,7 +11,7 @@ import (
"testing"
"time"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/lib/events"
)
var timeout = 100 * time.Millisecond

View File

@ -18,8 +18,8 @@ import (
"strings"
"time"
"github.com/syncthing/syncthing/internal/fnmatch"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/fnmatch"
"github.com/syncthing/syncthing/lib/sync"
)
type Pattern struct {

View File

@ -8,7 +8,7 @@ package model
import (
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/sync"
)
// deviceActivity tracks the number of outstanding requests per device and can

View File

@ -9,8 +9,8 @@ package model
import (
"time"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/sync"
)
type folderState int

View File

@ -23,16 +23,16 @@ import (
"time"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/db"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/ignore"
"github.com/syncthing/syncthing/internal/osutil"
"github.com/syncthing/syncthing/internal/scanner"
"github.com/syncthing/syncthing/internal/stats"
"github.com/syncthing/syncthing/internal/symlinks"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/internal/versioner"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/db"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/ignore"
"github.com/syncthing/syncthing/lib/osutil"
"github.com/syncthing/syncthing/lib/scanner"
"github.com/syncthing/syncthing/lib/stats"
"github.com/syncthing/syncthing/lib/symlinks"
"github.com/syncthing/syncthing/lib/sync"
"github.com/syncthing/syncthing/lib/versioner"
"github.com/syndtr/goleveldb/leveldb"
"github.com/thejerf/suture"
)

View File

@ -19,8 +19,8 @@ import (
"time"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/db"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/db"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/storage"
)

View File

@ -12,9 +12,9 @@ import (
"reflect"
"time"
"github.com/syncthing/syncthing/internal/config"
"github.com/syncthing/syncthing/internal/events"
"github.com/syncthing/syncthing/internal/sync"
"github.com/syncthing/syncthing/lib/config"
"github.com/syncthing/syncthing/lib/events"
"github.com/syncthing/syncthing/lib/sync"
)
type ProgressEmitter struct {

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