| 60 | ) (ChangeStream, error) |
| 61 | |
| 62 | type MongoConnector struct { |
| 63 | logger log.Logger |
| 64 | metadataStore metadataStore |
| 65 | config *protos.MongoConfig |
| 66 | client *mongo.Client |
| 67 | ssh *utils.SSHTunnel |
| 68 | createChangeStream createChangeStreamFunc |
| 69 | totalBytesRead atomic.Int64 |
| 70 | deltaBytesRead atomic.Int64 |
| 71 | } |
| 72 | |
| 73 | func NewMongoConnector(ctx context.Context, config *protos.MongoConfig) (*MongoConnector, error) { |
| 74 | logger := internal.LoggerFromCtx(ctx) |
nothing calls this directly
no outgoing calls
no test coverage detected