You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeProducerinterface {
Produce(k []byte, v []byte, oany)
io.Closer
}
and it does not define an Initialize method.
However, every createXXX method in the emitter.go file, initializes the producer from a configuration file.
The Initialization should be independent from the configuration file but should initialize the Producer with a default Constructor (e.g.: producer.New(...) (Producer, error)
The actual configuration should be hidden in the Factory.
The text was updated successfully, but these errors were encountered:
The current interface is:
and it does not define an
Initialize
method.However, every
createXXX
method in theemitter.go
file, initializes the producer from a configuration file.The Initialization should be independent from the configuration file but should initialize the Producer with a default Constructor (e.g.:
producer.New(...) (Producer, error)
The actual configuration should be hidden in the Factory.
The text was updated successfully, but these errors were encountered: