prices: rename proto file to prices.proto

This fixes a registration conflict with the set of etcd protos.
This commit is contained in:
Olaoluwa Osuntokun
2023-06-13 20:39:28 -05:00
parent 40df8f8339
commit c396ca51b7
8 changed files with 56 additions and 56 deletions

View File

@@ -6,7 +6,7 @@ set -e
function generate() { function generate() {
echo "Generating root gRPC server protos" echo "Generating root gRPC server protos"
PROTOS="rpc.proto" PROTOS="prices.proto"
# For each of the sub-servers, we then generate their protos, but a restricted # For each of the sub-servers, we then generate their protos, but a restricted
# set as they don't yet require REST proxies, or swagger docs. # set as they don't yet require REST proxies, or swagger docs.
@@ -46,7 +46,7 @@ function generate() {
--plugin=protoc-gen-custom=$falafel\ --plugin=protoc-gen-custom=$falafel\
--custom_out=. \ --custom_out=. \
--custom_opt="$opts" \ --custom_opt="$opts" \
rpc.proto prices.proto
PACKAGES="" PACKAGES=""
for package in $PACKAGES; do for package in $PACKAGES; do

View File

@@ -2,7 +2,7 @@
// versions: // versions:
// protoc-gen-go v1.27.1 // protoc-gen-go v1.27.1
// protoc v3.6.1 // protoc v3.6.1
// source: rpc.proto // source: prices.proto
package pricesrpc package pricesrpc
@@ -32,7 +32,7 @@ type GetPriceRequest struct {
func (x *GetPriceRequest) Reset() { func (x *GetPriceRequest) Reset() {
*x = GetPriceRequest{} *x = GetPriceRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_rpc_proto_msgTypes[0] mi := &file_prices_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -45,7 +45,7 @@ func (x *GetPriceRequest) String() string {
func (*GetPriceRequest) ProtoMessage() {} func (*GetPriceRequest) ProtoMessage() {}
func (x *GetPriceRequest) ProtoReflect() protoreflect.Message { func (x *GetPriceRequest) ProtoReflect() protoreflect.Message {
mi := &file_rpc_proto_msgTypes[0] mi := &file_prices_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -58,7 +58,7 @@ func (x *GetPriceRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPriceRequest.ProtoReflect.Descriptor instead. // Deprecated: Use GetPriceRequest.ProtoReflect.Descriptor instead.
func (*GetPriceRequest) Descriptor() ([]byte, []int) { func (*GetPriceRequest) Descriptor() ([]byte, []int) {
return file_rpc_proto_rawDescGZIP(), []int{0} return file_prices_proto_rawDescGZIP(), []int{0}
} }
func (x *GetPriceRequest) GetPath() string { func (x *GetPriceRequest) GetPath() string {
@@ -86,7 +86,7 @@ type GetPriceResponse struct {
func (x *GetPriceResponse) Reset() { func (x *GetPriceResponse) Reset() {
*x = GetPriceResponse{} *x = GetPriceResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_rpc_proto_msgTypes[1] mi := &file_prices_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -99,7 +99,7 @@ func (x *GetPriceResponse) String() string {
func (*GetPriceResponse) ProtoMessage() {} func (*GetPriceResponse) ProtoMessage() {}
func (x *GetPriceResponse) ProtoReflect() protoreflect.Message { func (x *GetPriceResponse) ProtoReflect() protoreflect.Message {
mi := &file_rpc_proto_msgTypes[1] mi := &file_prices_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -112,7 +112,7 @@ func (x *GetPriceResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetPriceResponse.ProtoReflect.Descriptor instead. // Deprecated: Use GetPriceResponse.ProtoReflect.Descriptor instead.
func (*GetPriceResponse) Descriptor() ([]byte, []int) { func (*GetPriceResponse) Descriptor() ([]byte, []int) {
return file_rpc_proto_rawDescGZIP(), []int{1} return file_prices_proto_rawDescGZIP(), []int{1}
} }
func (x *GetPriceResponse) GetPriceSats() int64 { func (x *GetPriceResponse) GetPriceSats() int64 {
@@ -122,48 +122,48 @@ func (x *GetPriceResponse) GetPriceSats() int64 {
return 0 return 0
} }
var File_rpc_proto protoreflect.FileDescriptor var File_prices_proto protoreflect.FileDescriptor
var file_rpc_proto_rawDesc = []byte{ var file_prices_proto_rawDesc = []byte{
0x0a, 0x09, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x70, 0x72, 0x69, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09,
0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x22, 0x51, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x22, 0x51, 0x0a, 0x0f, 0x47, 0x65, 0x74,
0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2a, 0x0a, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68,
0x11, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x68, 0x74, 0x74, 0x70, 0x52, 0x65, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x68, 0x74, 0x74,
0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x65, 0x78, 0x74, 0x22, 0x31, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x65, 0x78, 0x74, 0x22, 0x31, 0x0a, 0x10,
0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x0a, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x61, 0x74, 0x73, 0x18, 0x01,
0x03, 0x52, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, 0x53, 0x61, 0x74, 0x73, 0x32, 0x4d, 0x0a, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, 0x53, 0x61, 0x74, 0x73, 0x32,
0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x4d, 0x0a, 0x06, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x08, 0x47, 0x65, 0x74,
0x63, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70,
0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x2e, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x47, 0x65,
0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2d,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e, 0x5a, 0x2b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67,
0x69, 0x6e, 0x67, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x70, 0x65, 0x72, 0x74, 0x75, 0x72, 0x65, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x61, 0x70, 0x65, 0x72, 0x74,
0x2f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x75, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70,
0x6f, 0x33, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
file_rpc_proto_rawDescOnce sync.Once file_prices_proto_rawDescOnce sync.Once
file_rpc_proto_rawDescData = file_rpc_proto_rawDesc file_prices_proto_rawDescData = file_prices_proto_rawDesc
) )
func file_rpc_proto_rawDescGZIP() []byte { func file_prices_proto_rawDescGZIP() []byte {
file_rpc_proto_rawDescOnce.Do(func() { file_prices_proto_rawDescOnce.Do(func() {
file_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_proto_rawDescData) file_prices_proto_rawDescData = protoimpl.X.CompressGZIP(file_prices_proto_rawDescData)
}) })
return file_rpc_proto_rawDescData return file_prices_proto_rawDescData
} }
var file_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_prices_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_rpc_proto_goTypes = []interface{}{ var file_prices_proto_goTypes = []interface{}{
(*GetPriceRequest)(nil), // 0: pricesrpc.GetPriceRequest (*GetPriceRequest)(nil), // 0: pricesrpc.GetPriceRequest
(*GetPriceResponse)(nil), // 1: pricesrpc.GetPriceResponse (*GetPriceResponse)(nil), // 1: pricesrpc.GetPriceResponse
} }
var file_rpc_proto_depIdxs = []int32{ var file_prices_proto_depIdxs = []int32{
0, // 0: pricesrpc.Prices.GetPrice:input_type -> pricesrpc.GetPriceRequest 0, // 0: pricesrpc.Prices.GetPrice:input_type -> pricesrpc.GetPriceRequest
1, // 1: pricesrpc.Prices.GetPrice:output_type -> pricesrpc.GetPriceResponse 1, // 1: pricesrpc.Prices.GetPrice:output_type -> pricesrpc.GetPriceResponse
1, // [1:2] is the sub-list for method output_type 1, // [1:2] is the sub-list for method output_type
@@ -173,13 +173,13 @@ var file_rpc_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for field type_name 0, // [0:0] is the sub-list for field type_name
} }
func init() { file_rpc_proto_init() } func init() { file_prices_proto_init() }
func file_rpc_proto_init() { func file_prices_proto_init() {
if File_rpc_proto != nil { if File_prices_proto != nil {
return return
} }
if !protoimpl.UnsafeEnabled { if !protoimpl.UnsafeEnabled {
file_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { file_prices_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetPriceRequest); i { switch v := v.(*GetPriceRequest); i {
case 0: case 0:
return &v.state return &v.state
@@ -191,7 +191,7 @@ func file_rpc_proto_init() {
return nil return nil
} }
} }
file_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { file_prices_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetPriceResponse); i { switch v := v.(*GetPriceResponse); i {
case 0: case 0:
return &v.state return &v.state
@@ -208,18 +208,18 @@ func file_rpc_proto_init() {
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_rpc_proto_rawDesc, RawDescriptor: file_prices_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 2, NumMessages: 2,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
GoTypes: file_rpc_proto_goTypes, GoTypes: file_prices_proto_goTypes,
DependencyIndexes: file_rpc_proto_depIdxs, DependencyIndexes: file_prices_proto_depIdxs,
MessageInfos: file_rpc_proto_msgTypes, MessageInfos: file_prices_proto_msgTypes,
}.Build() }.Build()
File_rpc_proto = out.File File_prices_proto = out.File
file_rpc_proto_rawDesc = nil file_prices_proto_rawDesc = nil
file_rpc_proto_goTypes = nil file_prices_proto_goTypes = nil
file_rpc_proto_depIdxs = nil file_prices_proto_depIdxs = nil
} }

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: rpc.proto // source: prices.proto
/* /*
Package pricesrpc is a reverse proxy. Package pricesrpc is a reverse proxy.

View File

@@ -1,5 +1,5 @@
// Code generated by falafel 0.9.1. DO NOT EDIT. // Code generated by falafel 0.9.1. DO NOT EDIT.
// source: rpc.proto // source: prices.proto
// +build js // +build js

View File

@@ -1,7 +1,7 @@
{ {
"swagger": "2.0", "swagger": "2.0",
"info": { "info": {
"title": "rpc.proto", "title": "prices.proto",
"version": "version not set" "version": "version not set"
}, },
"tags": [ "tags": [

View File

@@ -97,5 +97,5 @@ var Prices_ServiceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "rpc.proto", Metadata: "prices.proto",
} }