A very rough and quick spike to get a Grakn Go Client up and running. Does not follow the official client patterns, but all the functionality seems to work.
Download protoc and put in path:
For more information see https://developers.google.com/protocol-buffers/docs/downloads
Build go protoc plugin
export GO111MODULE=on
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30.0
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0
Add to path
export PATH="$(go env GOPATH)/bin:$PATH"
For more information see https://grpc.io/docs/languages/go/quickstart/
protoc --go_out=. v1/protobuf/*.proto
protoc --go-grpc_out=. v1/protobuf/*.proto
protoc --go_out=. v2/protobuf/common/*.proto
protoc --go_out=. v2/protobuf/cluster/*.proto
protoc --go_out=. v2/protobuf/core/*.proto
protoc --go-grpc_out=. v2/protobuf/common/*.proto
protoc --go-grpc_out=. v2/protobuf/cluster/*.proto
protoc --go-grpc_out=. v2/protobuf/core/*.proto
Download TypeDB:
For more information see https://vaticle.com/download#typedb
Run TypeDB from extracted directory
set SERVER_JAVAOPTS="-Xms4G"
set STORAGE_JAVAOPTS="-Xms8G"
SET JAVA_OPTS="-Xms4G -Xmx8G"
CALL typedb.bat server
Test up will setup database as required, and will then read and write to it
Compile
go build
Run
typedb-client-go