mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
Multitenant streams api (#72)
This commit is contained in:
@@ -12,7 +12,7 @@ proto:
|
||||
.PHONY: docs
|
||||
docs:
|
||||
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/geocoding.proto
|
||||
@redoc-cli bundle api-geocoding.json
|
||||
@redoc-cli bundle api-protobuf.json
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc v3.6.1
|
||||
// protoc v3.15.5
|
||||
// source: proto/geocoding.proto
|
||||
|
||||
package geocoding
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
wrappers "github.com/golang/protobuf/ptypes/wrappers"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
@@ -126,8 +126,8 @@ type Coordinates struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Latitude *wrappers.DoubleValue `protobuf:"bytes,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
|
||||
Longitude *wrappers.DoubleValue `protobuf:"bytes,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
|
||||
Latitude *wrapperspb.DoubleValue `protobuf:"bytes,1,opt,name=latitude,proto3" json:"latitude,omitempty"`
|
||||
Longitude *wrapperspb.DoubleValue `protobuf:"bytes,2,opt,name=longitude,proto3" json:"longitude,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Coordinates) Reset() {
|
||||
@@ -162,14 +162,14 @@ func (*Coordinates) Descriptor() ([]byte, []int) {
|
||||
return file_proto_geocoding_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *Coordinates) GetLatitude() *wrappers.DoubleValue {
|
||||
func (x *Coordinates) GetLatitude() *wrapperspb.DoubleValue {
|
||||
if x != nil {
|
||||
return x.Latitude
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Coordinates) GetLongitude() *wrappers.DoubleValue {
|
||||
func (x *Coordinates) GetLongitude() *wrapperspb.DoubleValue {
|
||||
if x != nil {
|
||||
return x.Longitude
|
||||
}
|
||||
@@ -230,9 +230,9 @@ func file_proto_geocoding_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_proto_geocoding_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_proto_geocoding_proto_goTypes = []interface{}{
|
||||
(*Address)(nil), // 0: geocoding.Address
|
||||
(*Coordinates)(nil), // 1: geocoding.Coordinates
|
||||
(*wrappers.DoubleValue)(nil), // 2: google.protobuf.DoubleValue
|
||||
(*Address)(nil), // 0: geocoding.Address
|
||||
(*Coordinates)(nil), // 1: geocoding.Coordinates
|
||||
(*wrapperspb.DoubleValue)(nil), // 2: google.protobuf.DoubleValue
|
||||
}
|
||||
var file_proto_geocoding_proto_depIdxs = []int32{
|
||||
2, // 0: geocoding.Coordinates.latitude:type_name -> google.protobuf.DoubleValue
|
||||
|
||||
@@ -6,7 +6,7 @@ package geocoding
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "github.com/golang/protobuf/ptypes/wrappers"
|
||||
_ "google.golang.org/protobuf/types/known/wrapperspb"
|
||||
math "math"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package geocoding;
|
||||
option go_package = "proto;geocoding";
|
||||
option go_package = "./proto;geocoding";
|
||||
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
@@ -25,4 +25,4 @@ message Address {
|
||||
message Coordinates {
|
||||
google.protobuf.DoubleValue latitude = 1;
|
||||
google.protobuf.DoubleValue longitude = 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user