Documentation ¶
Index ¶
- type DbExtractor
- type Extractor
- type MongoExtractor
- func (ex *MongoExtractor) Done()
- func (ex *MongoExtractor) Get() (time.Time, *pb.ReplayedEvent, error)
- func (ex *MongoExtractor) Next() bool
- func (ex *MongoExtractor) SetLogLevel(level logrus.Level)
- func (ex *MongoExtractor) StartQuery(ctx context.Context, collectionName string, queryOptions *pb.SourceReplay) error
- type MongoExtractorConfig
- type PostgresExtractor
- func (ex *PostgresExtractor) Done()
- func (ex *PostgresExtractor) Get() (time.Time, *pb.ReplayedEvent, error)
- func (ex *PostgresExtractor) Next() bool
- func (ex *PostgresExtractor) SetLogLevel(level logrus.Level)
- func (ex *PostgresExtractor) StartQuery(ctx context.Context, tableName string, queryOptions *pb.SourceReplay) error
- type PostgresExtractorConfig
- type WrapperFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbExtractor ¶
type DbExtractor interface { GetAll(*sql.Rows, *gorm.DB) (*pb.ReplayedEvent, error) GetInstance() interface{} }
DbExtractor ...
type Extractor ¶
type Extractor interface { Get() (time.Time, *pb.ReplayedEvent, error) StartQuery(ctx context.Context, sourceName string, options *pb.SourceReplay) error Next() bool Done() SetLogLevel(logrus.Level) }
Extractor ...
type MongoExtractor ¶
type MongoExtractor struct { DB *libdb.MongoDB Proto proto.Message WrapperFunc WrapperFunc Config MongoExtractorConfig // contains filtered or unexported fields }
MongoExtractor ...
func NewMongoExtractor ¶
func NewMongoExtractor(db *libdb.MongoDB, wrapperFunc WrapperFunc, proto proto.Message, config MongoExtractorConfig) *MongoExtractor
NewMongoExtractor ...
func (*MongoExtractor) Get ¶
func (ex *MongoExtractor) Get() (time.Time, *pb.ReplayedEvent, error)
Get ...
func (*MongoExtractor) SetLogLevel ¶ added in v0.3.0
func (ex *MongoExtractor) SetLogLevel(level logrus.Level)
SetLogLevel ...
func (*MongoExtractor) StartQuery ¶
func (ex *MongoExtractor) StartQuery(ctx context.Context, collectionName string, queryOptions *pb.SourceReplay) error
StartQuery ...
type MongoExtractorConfig ¶ added in v0.3.0
MongoExtractorConfig ...
type PostgresExtractor ¶
type PostgresExtractor struct { Extractor DbExtractor DB *libdb.PostgresDB Config PostgresExtractorConfig // contains filtered or unexported fields }
PostgresExtractor ...
func NewPostgresExtractor ¶
func NewPostgresExtractor(db *libdb.PostgresDB, extractor DbExtractor) *PostgresExtractor
NewPostgresExtractor ...
func (*PostgresExtractor) Get ¶
func (ex *PostgresExtractor) Get() (time.Time, *pb.ReplayedEvent, error)
Get ...
func (*PostgresExtractor) SetLogLevel ¶ added in v0.3.0
func (ex *PostgresExtractor) SetLogLevel(level logrus.Level)
SetLogLevel ...
func (*PostgresExtractor) StartQuery ¶
func (ex *PostgresExtractor) StartQuery(ctx context.Context, tableName string, queryOptions *pb.SourceReplay) error
StartQuery ...
type PostgresExtractorConfig ¶ added in v0.3.0
PostgresExtractorConfig ...
Click to show internal directories.
Click to hide internal directories.