Multitenant streams api (#72)

This commit is contained in:
Dominic Wong
2021-03-18 17:21:41 +00:00
committed by GitHub
parent 28ad626d91
commit 8dfe49f813
87 changed files with 1890 additions and 1064 deletions

View File

@@ -12,7 +12,7 @@ proto:
.PHONY: docs
docs:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/routing.proto
@redoc-cli bundle api-routing.json
@redoc-cli bundle api-protobuf.json
.PHONY: build
build:

View File

@@ -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/routing.proto
package routing
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"
)
@@ -31,8 +31,8 @@ type Point 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 *Point) Reset() {
@@ -67,14 +67,14 @@ func (*Point) Descriptor() ([]byte, []int) {
return file_proto_routing_proto_rawDescGZIP(), []int{0}
}
func (x *Point) GetLatitude() *wrappers.DoubleValue {
func (x *Point) GetLatitude() *wrapperspb.DoubleValue {
if x != nil {
return x.Latitude
}
return nil
}
func (x *Point) GetLongitude() *wrappers.DoubleValue {
func (x *Point) GetLongitude() *wrapperspb.DoubleValue {
if x != nil {
return x.Longitude
}
@@ -231,10 +231,10 @@ func file_proto_routing_proto_rawDescGZIP() []byte {
var file_proto_routing_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_proto_routing_proto_goTypes = []interface{}{
(*Point)(nil), // 0: routing.Point
(*RouteRequest)(nil), // 1: routing.RouteRequest
(*RouteResponse)(nil), // 2: routing.RouteResponse
(*wrappers.DoubleValue)(nil), // 3: google.protobuf.DoubleValue
(*Point)(nil), // 0: routing.Point
(*RouteRequest)(nil), // 1: routing.RouteRequest
(*RouteResponse)(nil), // 2: routing.RouteResponse
(*wrapperspb.DoubleValue)(nil), // 3: google.protobuf.DoubleValue
}
var file_proto_routing_proto_depIdxs = []int32{
3, // 0: routing.Point.latitude:type_name -> google.protobuf.DoubleValue

View File

@@ -6,7 +6,7 @@ package routing
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "github.com/golang/protobuf/ptypes/wrappers"
_ "google.golang.org/protobuf/types/known/wrapperspb"
math "math"
)

View File

@@ -1,7 +1,7 @@
syntax = "proto3";
package routing;
option go_package = "proto;routing";
option go_package = "./proto;routing";
import "google/protobuf/wrappers.proto";
@@ -21,4 +21,4 @@ message RouteRequest {
message RouteResponse {
repeated Point waypoints = 1;
}
}