Refactor out protocol and luhn (protocol dependency) packages

This commit is contained in:
Jakob Borg
2015-01-13 13:22:56 +01:00
parent 48382c4b59
commit eef1aebe8c
65 changed files with 841 additions and 70 deletions

View File

@@ -20,7 +20,7 @@ import (
"path/filepath"
"sync"
"github.com/syncthing/syncthing/internal/protocol"
"github.com/syncthing/protocol"
)
// The parallell hasher reads FileInfo structures from the inbox, hashes the

View File

@@ -21,7 +21,7 @@ import (
"fmt"
"io"
"github.com/syncthing/syncthing/internal/protocol"
"github.com/syncthing/protocol"
)
var SHA256OfNothing = []uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}

View File

@@ -20,7 +20,7 @@ import (
"fmt"
"testing"
"github.com/syncthing/syncthing/internal/protocol"
"github.com/syncthing/protocol"
)
var blocksTestData = []struct {

View File

@@ -23,9 +23,9 @@ import (
"strings"
"time"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/ignore"
"github.com/syncthing/syncthing/internal/lamport"
"github.com/syncthing/syncthing/internal/protocol"
"github.com/syncthing/syncthing/internal/symlinks"
"golang.org/x/text/unicode/norm"
)

View File

@@ -24,8 +24,8 @@ import (
"sort"
"testing"
"github.com/syncthing/protocol"
"github.com/syncthing/syncthing/internal/ignore"
"github.com/syncthing/syncthing/internal/protocol"
)
type testfile struct {