Last active
October 28, 2022 21:26
-
-
Save Abdulsametileri/3c903437677a771845cdc70616d5e8eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
// .. | |
var consumeFn kafka.ConsumeFn = func(message kafka.Message) error { | |
fmt.Printf("consumer > Message received: %s\n", string(message.Value)) | |
return nil | |
} | |
c := cronsumer.New(kafkaConfig, consumeFn) | |
c.Run() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment