move replication package to project root (independent of cmd package)

This commit is contained in:
Christian Schwarz
2018-08-22 00:19:03 +02:00
parent 301c7b2dd5
commit 7b3a84e2a3
15 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"github.com/zrepl/zrepl/zfs"
"sync"
"github.com/zrepl/zrepl/cmd/replication"
"github.com/zrepl/zrepl/replication"
)
type LocalJob struct {
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/mitchellh/mapstructure"
"github.com/pkg/errors"
"github.com/problame/go-streamrpc"
"github.com/zrepl/zrepl/cmd/replication"
"github.com/zrepl/zrepl/replication"
)
type PullJob struct {
+2 -2
View File
@@ -2,7 +2,7 @@ package cmd
import (
"fmt"
"github.com/zrepl/zrepl/cmd/replication/pdu"
"github.com/zrepl/zrepl/replication/pdu"
"github.com/problame/go-streamrpc"
"github.com/zrepl/zrepl/zfs"
"io"
@@ -10,7 +10,7 @@ import (
"github.com/golang/protobuf/proto"
"bytes"
"context"
"github.com/zrepl/zrepl/cmd/replication"
"github.com/zrepl/zrepl/replication"
)
type InitialReplPolicy string
@@ -3,7 +3,7 @@ package replication
import (
"github.com/zrepl/zrepl/logger"
"context"
"github.com/zrepl/zrepl/cmd/replication/fsrep"
"github.com/zrepl/zrepl/replication/fsrep"
)
type contextKey int
@@ -12,7 +12,7 @@ import (
"sync"
"time"
"github.com/zrepl/zrepl/cmd/replication/pdu"
"github.com/zrepl/zrepl/replication/pdu"
"github.com/zrepl/zrepl/logger"
)
@@ -3,7 +3,7 @@ package mainfsm
import (
"sort"
. "github.com/zrepl/zrepl/cmd/replication/pdu"
. "github.com/zrepl/zrepl/replication/pdu"
)
type ConflictNoCommonAncestor struct {
@@ -4,7 +4,7 @@ import (
"time"
"sort"
. "github.com/zrepl/zrepl/cmd/replication/fsrep"
. "github.com/zrepl/zrepl/replication/fsrep"
)
type replicationQueueItem struct {
@@ -10,10 +10,10 @@ import (
"sync"
"time"
"github.com/zrepl/zrepl/cmd/replication/pdu"
"github.com/zrepl/zrepl/cmd/replication/fsrep"
. "github.com/zrepl/zrepl/cmd/replication/internal/queue"
. "github.com/zrepl/zrepl/cmd/replication/internal/diff"
"github.com/zrepl/zrepl/replication/pdu"
"github.com/zrepl/zrepl/replication/fsrep"
. "github.com/zrepl/zrepl/replication/internal/queue"
. "github.com/zrepl/zrepl/replication/internal/diff"
)
//go:generate stringer -type=State