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

View File

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/zrepl/zrepl/zfs" "github.com/zrepl/zrepl/zfs"
"sync" "sync"
"github.com/zrepl/zrepl/cmd/replication" "github.com/zrepl/zrepl/replication"
) )
type LocalJob struct { type LocalJob struct {

View File

@ -13,7 +13,7 @@ import (
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/problame/go-streamrpc" "github.com/problame/go-streamrpc"
"github.com/zrepl/zrepl/cmd/replication" "github.com/zrepl/zrepl/replication"
) )
type PullJob struct { type PullJob struct {

View File

@ -2,7 +2,7 @@ package cmd
import ( import (
"fmt" "fmt"
"github.com/zrepl/zrepl/cmd/replication/pdu" "github.com/zrepl/zrepl/replication/pdu"
"github.com/problame/go-streamrpc" "github.com/problame/go-streamrpc"
"github.com/zrepl/zrepl/zfs" "github.com/zrepl/zrepl/zfs"
"io" "io"
@ -10,7 +10,7 @@ import (
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
"bytes" "bytes"
"context" "context"
"github.com/zrepl/zrepl/cmd/replication" "github.com/zrepl/zrepl/replication"
) )
type InitialReplPolicy string type InitialReplPolicy string

View File

@ -3,7 +3,7 @@ package replication
import ( import (
"github.com/zrepl/zrepl/logger" "github.com/zrepl/zrepl/logger"
"context" "context"
"github.com/zrepl/zrepl/cmd/replication/fsrep" "github.com/zrepl/zrepl/replication/fsrep"
) )
type contextKey int type contextKey int

View File

@ -12,7 +12,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/zrepl/zrepl/cmd/replication/pdu" "github.com/zrepl/zrepl/replication/pdu"
"github.com/zrepl/zrepl/logger" "github.com/zrepl/zrepl/logger"
) )

View File

@ -3,7 +3,7 @@ package mainfsm
import ( import (
"sort" "sort"
. "github.com/zrepl/zrepl/cmd/replication/pdu" . "github.com/zrepl/zrepl/replication/pdu"
) )
type ConflictNoCommonAncestor struct { type ConflictNoCommonAncestor struct {

View File

@ -4,7 +4,7 @@ import (
"time" "time"
"sort" "sort"
. "github.com/zrepl/zrepl/cmd/replication/fsrep" . "github.com/zrepl/zrepl/replication/fsrep"
) )
type replicationQueueItem struct { type replicationQueueItem struct {

View File

@ -10,10 +10,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/zrepl/zrepl/cmd/replication/pdu" "github.com/zrepl/zrepl/replication/pdu"
"github.com/zrepl/zrepl/cmd/replication/fsrep" "github.com/zrepl/zrepl/replication/fsrep"
. "github.com/zrepl/zrepl/cmd/replication/internal/queue" . "github.com/zrepl/zrepl/replication/internal/queue"
. "github.com/zrepl/zrepl/cmd/replication/internal/diff" . "github.com/zrepl/zrepl/replication/internal/diff"
) )
//go:generate stringer -type=State //go:generate stringer -type=State