Skip to content

Latest commit

 

History

History
97 lines (61 loc) · 1.5 KB

README.md

File metadata and controls

97 lines (61 loc) · 1.5 KB

schemas

Schemas and spec files pertaining primarily to flagd. The Schema is available in the Buf Schema Registry, and can be found here.


When the below commands are used the generated code is placed in the parent directory

Requirements

  • A Go installation
  • You must have your GOPATH environment variable set in order to run these scripts.

The Makefile utilizes Go to install Buf to the GOPATH and execute the binary directly.

Setting up GOPATH

If you don't want to install buf to your global GOPATH, you can also set it for this repository only:

export GOPATH="$(pwd)/vendor/"

Golang:

Generate grpc-gateway, go-grpc and go stubs

make gen-go-server

Generate go-grpc and go stubs

make gen-go

go package import

go get go.buf.build/grpc/go/open-feature/flagd

Typescript:

Generate TypeScript stubs for grpc client and http/grpc input/output schema

make gen-ts

Java:

generate Java stubs for grpc client and http/grpc input/output schema

make gen-java

CSharp

generate csharp stubs for grpc client and http/grpc input/output schema

make gen-csharp

PHP:

Generate PHP stubs for grpc client

make gen-php

Ruby:

Generate Ruby stubs for grpc client

make gen-ruby

Rust:

Generate Rust stubs for grpc client

make gen-rust