Skip to content

proto function not define in yaml then grpc-gateway_out err #1233

Closed
@xuchunhua-com

Description

@xuchunhua-com

aggregate.proto
service AggregateService {
rpc InternalFunc (base.Empty) returns (HomeResp);
rpc GetHotKeyword (base.Empty) returns (GetHotKeywordResp);
}

app.yaml
type: google.api.Service
config_version: 3
http:
rules:
- selector: aggregate.AggregateService.GetHotKeyword
post: /goAppApi/aggregate/getHotKeyword
body: "*"

protoc -I/usr/local/include -Iproto --grpc-gateway_out=logtostderr=true,paths=source_relative,grpc_api_configuration=./proto/app.yaml:gen/gw/app/ ./proto/aggregate/aggregate.proto

--grpc-gateway_out: HTTP rules without a matching selector: AggregateService .InternalFunc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions