-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## what - switch to the new module name `github.com/alebabai/go-kit-kafka/v2` - use `github.com/alebabai/go-kafka` as a middleware for Apache Kafka transport - completely re-write examples - improve documentation ## why To separate Apache Kafka abstractions from `go-kit` bindings
- Loading branch information
Showing
60 changed files
with
908 additions
and
3,812 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package common | ||
|
||
const ( | ||
BrokerAddr = ":9094" | ||
KafkaTopic = "events" | ||
) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package consumer | ||
|
||
const ( | ||
HTTPServerAddr = ":8080" | ||
KafkaGroupID = "events-consumer" | ||
) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
package consumer | ||
|
||
import ( | ||
"github.com/alebabai/go-kit-kafka/examples/common/domain" | ||
"github.com/alebabai/go-kit-kafka/v2/examples/common" | ||
) | ||
|
||
type CreateEventRequest struct { | ||
Payload *domain.Event | ||
Payload common.Event | ||
} | ||
|
||
type CreateEventResponse struct { | ||
Result common.Event | ||
} | ||
|
||
type ListEventsRequest struct { | ||
} | ||
|
||
type ListEventsResponse struct { | ||
Results []domain.Event | ||
Results []common.Event | ||
} |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.