mirror of
https://github.com/zrepl/zrepl.git
synced 2025-06-03 00:25:37 +02:00
move replication package to project root (independent of cmd package)
This commit is contained in:
parent
301c7b2dd5
commit
7b3a84e2a3
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
@ -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 {
|
@ -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 {
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user