mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 05:14:52 +00:00
Multitenant streams api (#72)
This commit is contained in:
@@ -14,7 +14,7 @@ proto:
|
||||
.PHONY: docs
|
||||
docs:
|
||||
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/etas.proto
|
||||
@redoc-cli bundle api-etas.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/etas.proto
|
||||
|
||||
package etas
|
||||
|
||||
import (
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
)
|
||||
@@ -114,7 +114,7 @@ type Route struct {
|
||||
Waypoints []*Point `protobuf:"bytes,2,rep,name=waypoints,proto3" json:"waypoints,omitempty"`
|
||||
// start time specifies the time the vehicle will arrive at the pickup. If no value is provided,
|
||||
// the current time will be used
|
||||
StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Route) Reset() {
|
||||
@@ -163,7 +163,7 @@ func (x *Route) GetWaypoints() []*Point {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Route) GetStartTime() *timestamp.Timestamp {
|
||||
func (x *Route) GetStartTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.StartTime
|
||||
}
|
||||
@@ -224,8 +224,8 @@ type ETA struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
EstimatedArrivalTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=estimated_arrival_time,json=estimatedArrivalTime,proto3" json:"estimated_arrival_time,omitempty"`
|
||||
EstimatedDepartureTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=estimated_departure_time,json=estimatedDepartureTime,proto3" json:"estimated_departure_time,omitempty"`
|
||||
EstimatedArrivalTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=estimated_arrival_time,json=estimatedArrivalTime,proto3" json:"estimated_arrival_time,omitempty"`
|
||||
EstimatedDepartureTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=estimated_departure_time,json=estimatedDepartureTime,proto3" json:"estimated_departure_time,omitempty"`
|
||||
}
|
||||
|
||||
func (x *ETA) Reset() {
|
||||
@@ -260,14 +260,14 @@ func (*ETA) Descriptor() ([]byte, []int) {
|
||||
return file_proto_etas_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *ETA) GetEstimatedArrivalTime() *timestamp.Timestamp {
|
||||
func (x *ETA) GetEstimatedArrivalTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.EstimatedArrivalTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ETA) GetEstimatedDepartureTime() *timestamp.Timestamp {
|
||||
func (x *ETA) GetEstimatedDepartureTime() *timestamppb.Timestamp {
|
||||
if x != nil {
|
||||
return x.EstimatedDepartureTime
|
||||
}
|
||||
@@ -337,12 +337,12 @@ func file_proto_etas_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_proto_etas_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_proto_etas_proto_goTypes = []interface{}{
|
||||
(*Point)(nil), // 0: etas.Point
|
||||
(*Route)(nil), // 1: etas.Route
|
||||
(*Response)(nil), // 2: etas.Response
|
||||
(*ETA)(nil), // 3: etas.ETA
|
||||
nil, // 4: etas.Response.PointsEntry
|
||||
(*timestamp.Timestamp)(nil), // 5: google.protobuf.Timestamp
|
||||
(*Point)(nil), // 0: etas.Point
|
||||
(*Route)(nil), // 1: etas.Route
|
||||
(*Response)(nil), // 2: etas.Response
|
||||
(*ETA)(nil), // 3: etas.ETA
|
||||
nil, // 4: etas.Response.PointsEntry
|
||||
(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
|
||||
}
|
||||
var file_proto_etas_proto_depIdxs = []int32{
|
||||
0, // 0: etas.Route.pickup:type_name -> etas.Point
|
||||
|
||||
@@ -6,7 +6,7 @@ package etas
|
||||
import (
|
||||
fmt "fmt"
|
||||
proto "github.com/golang/protobuf/proto"
|
||||
_ "github.com/golang/protobuf/ptypes/timestamp"
|
||||
_ "google.golang.org/protobuf/types/known/timestamppb"
|
||||
math "math"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package etas;
|
||||
option go_package = "proto;etas";
|
||||
option go_package = "./proto;etas";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
@@ -41,4 +41,4 @@ message Response {
|
||||
message ETA {
|
||||
google.protobuf.Timestamp estimated_arrival_time = 1;
|
||||
google.protobuf.Timestamp estimated_departure_time = 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user