Generated Go protobuf and gRPC SDK for the GridX - P2P Energy Trading Platform.
This SDK contains Go protobuf message types and Go gRPC stubs generated from the protobuf repository.
The Go SDK is used by Go microservices for:
- Kafka message encoding/decoding
- gRPC inter-service communication
Do not manually edit files inside:
gen/
These files are generated automatically from the protobuf contract repo.
go get github.com/p2p-energy-trading-platform/go-sdk@v0.2.0package main
import (
testv1 "github.com/p2p-energy-trading-platform/go-sdk/gen/gridx/test/v1"
)
func main() {
money := &testv1.TestMoney{
CurrencyCode: "LKR",
Units: 100,
Nanos: 0,
}
_ = money
}This SDK follows the same version as the protobuf contract release.
Example:
protobuf v0.2.0
go-sdk v0.2.0