initial import

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-08-09 00:30:36 +03:00
parent d750157d53
commit aad8a578fc
5 changed files with 281 additions and 71 deletions

View File

@@ -2,6 +2,7 @@ package kgo_test
import (
"context"
"fmt"
"os"
"strings"
"testing"
@@ -50,6 +51,7 @@ func TestPubSub(t *testing.T) {
done := make(chan bool, 1)
fn := func(msg broker.Event) error {
fmt.Printf("EEEE %s\n", msg.Message().Body)
done <- true
return msg.Ack()
}