Categorygithub.com/sermodigital/protoc-gen-endpoint
repositorypackage
0.0.0-20170511004954-619478787c6f
Repository: https://github.com/sermodigital/protoc-gen-endpoint.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

protoc-gen-endpoint

protoc-gen-endpoint is a protobuf plugin that allows generating extra information for google.api.http.

Usage

service Server {
    rpc Foo(Bar) returns (Baz) {
        option (google.api.http) = {
            get: "/v1/foo"
        };
        option (proto.endpoint) = {
            unauthenticated: true
        };
    }
}

Once protoc-gen-endpoint is installed in $PATH, the program can be used with protoc via the flag: --endpoint_out

License

BSD 3 clause