NewPullReplicator creates an ISGR pull replicator.
(ctx context.Context, config *ActiveReplicatorConfig)
| 23 | |
| 24 | // NewPullReplicator creates an ISGR pull replicator. |
| 25 | func NewPullReplicator(ctx context.Context, config *ActiveReplicatorConfig) (*ActivePullReplicator, error) { |
| 26 | replicator, err := newActiveReplicatorCommon(ctx, config, ActiveReplicatorTypePull) |
| 27 | if err != nil { |
| 28 | return nil, err |
| 29 | } |
| 30 | apr := ActivePullReplicator{ |
| 31 | activeReplicatorCommon: replicator, |
| 32 | } |
| 33 | replicator.registerFunctions(apr._getStatus, apr._connect, apr.registerCheckpointerCallbacks) |
| 34 | return &apr, nil |
| 35 | } |
| 36 | |
| 37 | func (apr *ActivePullReplicator) _connect() error { |
| 38 | var err error |
no test coverage detected