mirror of
https://github.com/zrepl/zrepl.git
synced 2025-01-16 03:10:32 +01:00
38532abf45
not perfect yet, public shouldn't be required to use 'common' package to use replication package
20 lines
356 B
Go
20 lines
356 B
Go
package replication
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/zrepl/zrepl/cmd/replication/common"
|
|
"github.com/zrepl/zrepl/cmd/replication/internal/mainfsm"
|
|
)
|
|
|
|
type Report = mainfsm.Report
|
|
|
|
type Replication interface {
|
|
Drive(ctx context.Context, ep common.EndpointPair)
|
|
Report() *Report
|
|
}
|
|
|
|
func NewReplication() Replication {
|
|
return mainfsm.NewReplication()
|
|
}
|