Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapper should return more than one message #29

Closed
mhmtszr opened this issue Mar 20, 2023 · 0 comments
Closed

Mapper should return more than one message #29

mhmtszr opened this issue Mar 20, 2023 · 0 comments

Comments

@mhmtszr
Copy link
Member

mhmtszr commented Mar 20, 2023

func mapper(event couchbase.Event) *message.KafkaMessage {
	// return nil if you wish filter the event
	return message.GetKafkaMessage(event.Key, event.Value, nil)
}

Instead of '*message.KafkaMessage' we should return slice of messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants