Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(nodeID string, dispatcher Dispatcher, configs []ConsumerConfig) ([]service.Service, error)
Types ¶
type ConsumerConfig ¶
type ConsumerConfig = configtypes.Consumer
type Dispatcher ¶
type JSONRawOrString ¶
type JSONRawOrString json.RawMessage
JSONRawOrString can decode payload from bytes and from JSON string. This gives us better interoperability. For example, JSONB field is encoded as JSON string in Debezium PostgreSQL connector.
func (JSONRawOrString) MarshalJSON ¶
func (j JSONRawOrString) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
func (*JSONRawOrString) UnmarshalJSON ¶
func (j *JSONRawOrString) UnmarshalJSON(data []byte) error
type KafkaConfig ¶
type KafkaConfig = configtypes.KafkaConsumerConfig
type KafkaConsumer ¶
type KafkaConsumer struct {
// contains filtered or unexported fields
}
func NewKafkaConsumer ¶
func NewKafkaConsumer( name string, nodeID string, dispatcher Dispatcher, config KafkaConfig, metrics *commonMetrics, ) (*KafkaConsumer, error)
type KafkaJSONEvent ¶
type KafkaJSONEvent struct { Method string `json:"method"` Payload JSONRawOrString `json:"payload"` }
type PostgresConfig ¶
type PostgresConfig = configtypes.PostgresConsumerConfig
type PostgresConsumer ¶
type PostgresConsumer struct {
// contains filtered or unexported fields
}
func NewPostgresConsumer ¶
func NewPostgresConsumer( name string, dispatcher Dispatcher, config PostgresConfig, metrics *commonMetrics, ) (*PostgresConsumer, error)
Click to show internal directories.
Click to hide internal directories.