Documentation ¶
Index ¶
- func NewCreatorFactory(config *config.PulsarConfig, changefeedID model.ChangeFeedID, ...) (pulsar.Client, error)
- func NewMockCreatorFactory(config *config.PulsarConfig, changefeedID model.ChangeFeedID, ...) (pulsar.Client, error)
- func NewPulsarConfig(sinkURI *url.URL, pulsarConfig *config.PulsarConfig) (*config.PulsarConfig, error)
- type FactoryCreator
- type Logger
- func (p *Logger) Debug(args ...interface{})
- func (p *Logger) Debugf(format string, args ...interface{})
- func (p *Logger) Error(args ...interface{})
- func (p *Logger) Errorf(format string, args ...interface{})
- func (p *Logger) Info(args ...interface{})
- func (p *Logger) Infof(format string, args ...interface{})
- func (p *Logger) SubLogger(pulsarFields log.Fields) log.Logger
- func (p *Logger) Warn(args ...interface{})
- func (p *Logger) Warnf(format string, args ...interface{})
- func (p *Logger) WithError(err error) log.Entry
- func (p *Logger) WithField(name string, value interface{}) log.Entry
- func (p *Logger) WithFields(fields log.Fields) log.Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreatorFactory ¶
func NewCreatorFactory(config *config.PulsarConfig, changefeedID model.ChangeFeedID, sinkConfig *config.SinkConfig) (pulsar.Client, error)
NewCreatorFactory returns a factory implemented based on kafka-go
func NewMockCreatorFactory ¶
func NewMockCreatorFactory(config *config.PulsarConfig, changefeedID model.ChangeFeedID, sinkConfig *config.SinkConfig, ) (pulsar.Client, error)
NewMockCreatorFactory returns a factory implemented based on kafka-go
func NewPulsarConfig ¶
func NewPulsarConfig(sinkURI *url.URL, pulsarConfig *config.PulsarConfig) (*config.PulsarConfig, error)
NewPulsarConfig new pulsar config TODO(dongmen): make this method more concise.
Types ¶
type FactoryCreator ¶
type FactoryCreator func(config *config.PulsarConfig, changefeedID model.ChangeFeedID, sinkConfig *config.SinkConfig) (pulsar.Client, error)
FactoryCreator defines the type of factory creator.
Click to show internal directories.
Click to hide internal directories.