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) install("./cmd/...", tags)
vet("./cmd/syncthing") vet("./cmd/syncthing")
vet("./internal/...") vet("./lib/...")
lint("./cmd/syncthing") lint("./cmd/syncthing")
lint("./internal/...") lint("./lib/...")
return return
} }
@ -143,11 +143,11 @@ func main() {
case "vet": case "vet":
vet("./cmd/syncthing") vet("./cmd/syncthing")
vet("./internal/...") vet("./lib/...")
case "lint": case "lint":
lint("./cmd/syncthing") lint("./cmd/syncthing")
lint("./internal/...") lint("./lib/...")
default: default:
log.Fatalf("Unknown command %q", cmd) log.Fatalf("Unknown command %q", cmd)
@ -405,11 +405,11 @@ func setBuildEnv() {
func assets() { func assets() {
setBuildEnv() 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() { func xdr() {
runPrint("go", "generate", "./internal/discover", "./internal/db") runPrint("go", "generate", "./lib/discover", "./lib/db")
} }
func translate() { func translate() {

View File

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

View File

@ -30,7 +30,7 @@ print-missing-authors() {
} }
print-missing-copyright() { 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) authors=$(print-missing-authors)

View File

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

View File

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

View File

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

View File

@ -14,7 +14,7 @@ import (
"os" "os"
"github.com/syncthing/protocol" "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"
"github.com/syndtr/goleveldb/leveldb/opt" "github.com/syndtr/goleveldb/leveldb/opt"
) )

View File

@ -10,7 +10,7 @@ import (
"encoding/json" "encoding/json"
"io" "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 // The auditSvc subscribes to events and writes these in JSON format, one

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,7 @@ import (
"testing" "testing"
"github.com/syncthing/protocol" "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"
"github.com/syndtr/goleveldb/leveldb/storage" "github.com/syndtr/goleveldb/leveldb/storage"

View File

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

View File

@ -16,7 +16,7 @@ import (
"sort" "sort"
"github.com/syncthing/protocol" "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"
"github.com/syndtr/goleveldb/leveldb/iterator" "github.com/syndtr/goleveldb/leveldb/iterator"
"github.com/syndtr/goleveldb/leveldb/opt" "github.com/syndtr/goleveldb/leveldb/opt"

View File

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

View File

@ -14,7 +14,7 @@ import (
"testing" "testing"
"github.com/syncthing/protocol" "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"
"github.com/syndtr/goleveldb/leveldb/storage" "github.com/syndtr/goleveldb/leveldb/storage"
) )

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,7 @@ package model
import ( import (
"github.com/syncthing/protocol" "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 // deviceActivity tracks the number of outstanding requests per device and can

View File

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

View File

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

View File

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

View File

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

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