Categorygithub.com/jzero-io/desc
repository
1.1.0
Repository: https://github.com/jzero-io/desc.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

desc

jzero common desc

protoc -I./third_party third_party/jzero/api/http.proto --go_out third_party/jzero/api

proto

jzero

  1. gateway
  • http.proto
  • zrpc.proto
service Hello {
    rpc SayHello(SayHelloRequest) returns(SayHelloResponse) {
        option (google.api.http) = {
            get: "/api/v1/hello"
        };
        option (jzero.api.http) = {
            middleware: "Auth"
        };
        option (jzero.api.zrpc) = {
            middleware: "Auth"
        };
    };
}
service Hello {
    option (jzero.api.http_group) = {
        middleware: "Auth"
    };
    option (jzero.api.zrpc_group) = {
        middleware: "Auth"
    };

    rpc SayHello(SayHelloRequest) returns(SayHelloResponse) {
        option (google.api.http) = {
            get: "/api/v1/hello"
        };
    };
}