pact-kafka-plugin

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

README

pact-kafka-plugin

A Pact plugin for Kafka message verification. It allows for verification of Asynchronous messages pacts using AVRO serialization with knowledge of the Kafka Schema Registry.

Compiling Proto Files

To compile the proto files and generate the gRPC stubs:

make proto

This will generate the Go code from the proto files located in the proto/ directory.

Prerequisites

Installing Protobuf Compiler
macOS
# Install protoc using Homebrew
brew install protobuf
Linux
# Debian/Ubuntu
sudo apt-get update
sudo apt-get install -y protobuf-compiler

# Fedora/RHEL
sudo dnf install protobuf-compiler

# Or download the latest release from GitHub
# https://github.com/protocolbuffers/protobuf/releases
Installing Go Protobuf Plugins

After installing protoc, install the Go plugins (same for both macOS and Linux):

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

Ensure $GOPATH/bin is in your PATH:

export PATH="$PATH:$(go env GOPATH)/bin"

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Code generated by avro/gen.
Code generated by avro/gen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL