Documentation ¶
Overview ¶
Package buildingdata is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBuildingdataAccessHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBuildingdataAccessHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BuildingdataAccessClient) error
- func RegisterBuildingdataAccessHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBuildingdataAccessHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BuildingdataAccessServer) error
- func RegisterBuildingdataAccessServer(s grpc.ServiceRegistrar, srv BuildingdataAccessServer)
- type BuildingLimit
- func (*BuildingLimit) Descriptor() ([]byte, []int)deprecated
- func (x *BuildingLimit) GetId() string
- func (x *BuildingLimit) GetPolygonCoordinates() []*Coordinate
- func (*BuildingLimit) ProtoMessage()
- func (x *BuildingLimit) ProtoReflect() protoreflect.Message
- func (x *BuildingLimit) Reset()
- func (x *BuildingLimit) String() string
- type BuildingdataAccessClient
- type BuildingdataAccessServer
- type Coordinate
- func (*Coordinate) Descriptor() ([]byte, []int)deprecated
- func (x *Coordinate) GetLatitude() float64
- func (x *Coordinate) GetLongitude() float64
- func (*Coordinate) ProtoMessage()
- func (x *Coordinate) ProtoReflect() protoreflect.Message
- func (x *Coordinate) Reset()
- func (x *Coordinate) String() string
- type CreateBuildingdataRequest
- func (*CreateBuildingdataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBuildingdataRequest) GetBuildingLimits() *RequestBuildingLimit
- func (x *CreateBuildingdataRequest) GetHeightPlateaus() *RequestHeightPlateau
- func (*CreateBuildingdataRequest) ProtoMessage()
- func (x *CreateBuildingdataRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBuildingdataRequest) Reset()
- func (x *CreateBuildingdataRequest) String() string
- type CreateBuildingdataResponse
- type HeightPlateau
- func (*HeightPlateau) Descriptor() ([]byte, []int)deprecated
- func (x *HeightPlateau) GetElevation() float64
- func (x *HeightPlateau) GetId() string
- func (x *HeightPlateau) GetPolygonCoordinates() []*Coordinate
- func (*HeightPlateau) ProtoMessage()
- func (x *HeightPlateau) ProtoReflect() protoreflect.Message
- func (x *HeightPlateau) Reset()
- func (x *HeightPlateau) String() string
- type RequestBuildingLimit
- func (*RequestBuildingLimit) Descriptor() ([]byte, []int)deprecated
- func (x *RequestBuildingLimit) GetFeatures() []*RequestFeatures
- func (x *RequestBuildingLimit) GetType() string
- func (*RequestBuildingLimit) ProtoMessage()
- func (x *RequestBuildingLimit) ProtoReflect() protoreflect.Message
- func (x *RequestBuildingLimit) Reset()
- func (x *RequestBuildingLimit) String() string
- type RequestFeatures
- func (*RequestFeatures) Descriptor() ([]byte, []int)deprecated
- func (x *RequestFeatures) GetGeometry() *RequestGeometry
- func (x *RequestFeatures) GetProperties() *RequestProperties
- func (x *RequestFeatures) GetType() string
- func (*RequestFeatures) ProtoMessage()
- func (x *RequestFeatures) ProtoReflect() protoreflect.Message
- func (x *RequestFeatures) Reset()
- func (x *RequestFeatures) String() string
- type RequestGeometry
- func (*RequestGeometry) Descriptor() ([]byte, []int)deprecated
- func (x *RequestGeometry) GetCoordinates() *structpb.Value
- func (x *RequestGeometry) GetType() string
- func (*RequestGeometry) ProtoMessage()
- func (x *RequestGeometry) ProtoReflect() protoreflect.Message
- func (x *RequestGeometry) Reset()
- func (x *RequestGeometry) String() string
- type RequestHeightPlateau
- func (*RequestHeightPlateau) Descriptor() ([]byte, []int)deprecated
- func (x *RequestHeightPlateau) GetFeatures() []*RequestFeatures
- func (x *RequestHeightPlateau) GetType() string
- func (*RequestHeightPlateau) ProtoMessage()
- func (x *RequestHeightPlateau) ProtoReflect() protoreflect.Message
- func (x *RequestHeightPlateau) Reset()
- func (x *RequestHeightPlateau) String() string
- type RequestProperties
- func (*RequestProperties) Descriptor() ([]byte, []int)deprecated
- func (x *RequestProperties) GetElevation() float64
- func (*RequestProperties) ProtoMessage()
- func (x *RequestProperties) ProtoReflect() protoreflect.Message
- func (x *RequestProperties) Reset()
- func (x *RequestProperties) String() string
- type SplitBuildingLimit
- func (*SplitBuildingLimit) Descriptor() ([]byte, []int)deprecated
- func (x *SplitBuildingLimit) GetCorrespondingHeightPlateauElevation() float64
- func (x *SplitBuildingLimit) GetId() string
- func (x *SplitBuildingLimit) GetPolygonCoordinates() []*Coordinate
- func (*SplitBuildingLimit) ProtoMessage()
- func (x *SplitBuildingLimit) ProtoReflect() protoreflect.Message
- func (x *SplitBuildingLimit) Reset()
- func (x *SplitBuildingLimit) String() string
- type UnimplementedBuildingdataAccessServer
- type UnsafeBuildingdataAccessServer
Constants ¶
This section is empty.
Variables ¶
var BuildingdataAccess_ServiceDesc = grpc.ServiceDesc{ ServiceName: "buildingdataaccess.v1.BuildingdataAccess", HandlerType: (*BuildingdataAccessServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateBuildingdata", Handler: _BuildingdataAccess_CreateBuildingdata_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "buildingdataaccess/v1/server.proto", }
BuildingdataAccess_ServiceDesc is the grpc.ServiceDesc for BuildingdataAccess service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_buildingdataaccess_v1_buildingdata_proto protoreflect.FileDescriptor
var File_buildingdataaccess_v1_server_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuildingdataAccessHandler ¶
func RegisterBuildingdataAccessHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBuildingdataAccessHandler registers the http handlers for service BuildingdataAccess to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBuildingdataAccessHandlerClient ¶
func RegisterBuildingdataAccessHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BuildingdataAccessClient) error
RegisterBuildingdataAccessHandlerClient registers the http handlers for service BuildingdataAccess to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BuildingdataAccessClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BuildingdataAccessClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BuildingdataAccessClient" to call the correct interceptors.
func RegisterBuildingdataAccessHandlerFromEndpoint ¶
func RegisterBuildingdataAccessHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBuildingdataAccessHandlerFromEndpoint is same as RegisterBuildingdataAccessHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBuildingdataAccessHandlerServer ¶
func RegisterBuildingdataAccessHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BuildingdataAccessServer) error
RegisterBuildingdataAccessHandlerServer registers the http handlers for service BuildingdataAccess to "mux". UnaryRPC :call BuildingdataAccessServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBuildingdataAccessHandlerFromEndpoint instead.
func RegisterBuildingdataAccessServer ¶
func RegisterBuildingdataAccessServer(s grpc.ServiceRegistrar, srv BuildingdataAccessServer)
Types ¶
type BuildingLimit ¶
type BuildingLimit struct { Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty" bson:"_id"` // @gotags: bson:"_id" PolygonCoordinates []*Coordinate `` // @gotags: bson:"polygon_coordinates" /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BuildingLimit) Descriptor
deprecated
func (*BuildingLimit) Descriptor() ([]byte, []int)
Deprecated: Use BuildingLimit.ProtoReflect.Descriptor instead.
func (*BuildingLimit) GetId ¶
func (x *BuildingLimit) GetId() string
func (*BuildingLimit) GetPolygonCoordinates ¶
func (x *BuildingLimit) GetPolygonCoordinates() []*Coordinate
func (*BuildingLimit) ProtoMessage ¶
func (*BuildingLimit) ProtoMessage()
func (*BuildingLimit) ProtoReflect ¶
func (x *BuildingLimit) ProtoReflect() protoreflect.Message
func (*BuildingLimit) Reset ¶
func (x *BuildingLimit) Reset()
func (*BuildingLimit) String ¶
func (x *BuildingLimit) String() string
type BuildingdataAccessClient ¶
type BuildingdataAccessClient interface {
CreateBuildingdata(ctx context.Context, in *CreateBuildingdataRequest, opts ...grpc.CallOption) (*CreateBuildingdataResponse, error)
}
BuildingdataAccessClient is the client API for BuildingdataAccess service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBuildingdataAccessClient ¶
func NewBuildingdataAccessClient(cc grpc.ClientConnInterface) BuildingdataAccessClient
type BuildingdataAccessServer ¶
type BuildingdataAccessServer interface { CreateBuildingdata(context.Context, *CreateBuildingdataRequest) (*CreateBuildingdataResponse, error) // contains filtered or unexported methods }
BuildingdataAccessServer is the server API for BuildingdataAccess service. All implementations must embed UnimplementedBuildingdataAccessServer for forward compatibility
type Coordinate ¶
type Coordinate struct { Longitude float64 `protobuf:"fixed64,1,opt,name=longitude,proto3" json:"longitude,omitempty" bson:"latitude"` // @gotags: bson:"latitude" Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty" bson:"longitude"` // @gotags: bson:"longitude" // contains filtered or unexported fields }
func (*Coordinate) Descriptor
deprecated
func (*Coordinate) Descriptor() ([]byte, []int)
Deprecated: Use Coordinate.ProtoReflect.Descriptor instead.
func (*Coordinate) GetLatitude ¶
func (x *Coordinate) GetLatitude() float64
func (*Coordinate) GetLongitude ¶
func (x *Coordinate) GetLongitude() float64
func (*Coordinate) ProtoMessage ¶
func (*Coordinate) ProtoMessage()
func (*Coordinate) ProtoReflect ¶
func (x *Coordinate) ProtoReflect() protoreflect.Message
func (*Coordinate) Reset ¶
func (x *Coordinate) Reset()
func (*Coordinate) String ¶
func (x *Coordinate) String() string
type CreateBuildingdataRequest ¶
type CreateBuildingdataRequest struct { BuildingLimits *RequestBuildingLimit `protobuf:"bytes,1,opt,name=building_limits,json=buildingLimits,proto3" json:"building_limits,omitempty"` HeightPlateaus *RequestHeightPlateau `protobuf:"bytes,2,opt,name=height_plateaus,json=heightPlateaus,proto3" json:"height_plateaus,omitempty"` // contains filtered or unexported fields }
func (*CreateBuildingdataRequest) Descriptor
deprecated
func (*CreateBuildingdataRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBuildingdataRequest.ProtoReflect.Descriptor instead.
func (*CreateBuildingdataRequest) GetBuildingLimits ¶
func (x *CreateBuildingdataRequest) GetBuildingLimits() *RequestBuildingLimit
func (*CreateBuildingdataRequest) GetHeightPlateaus ¶
func (x *CreateBuildingdataRequest) GetHeightPlateaus() *RequestHeightPlateau
func (*CreateBuildingdataRequest) ProtoMessage ¶
func (*CreateBuildingdataRequest) ProtoMessage()
func (*CreateBuildingdataRequest) ProtoReflect ¶
func (x *CreateBuildingdataRequest) ProtoReflect() protoreflect.Message
func (*CreateBuildingdataRequest) Reset ¶
func (x *CreateBuildingdataRequest) Reset()
func (*CreateBuildingdataRequest) String ¶
func (x *CreateBuildingdataRequest) String() string
type CreateBuildingdataResponse ¶
type CreateBuildingdataResponse struct {
// contains filtered or unexported fields
}
func (*CreateBuildingdataResponse) Descriptor
deprecated
func (*CreateBuildingdataResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBuildingdataResponse.ProtoReflect.Descriptor instead.
func (*CreateBuildingdataResponse) ProtoMessage ¶
func (*CreateBuildingdataResponse) ProtoMessage()
func (*CreateBuildingdataResponse) ProtoReflect ¶
func (x *CreateBuildingdataResponse) ProtoReflect() protoreflect.Message
func (*CreateBuildingdataResponse) Reset ¶
func (x *CreateBuildingdataResponse) Reset()
func (*CreateBuildingdataResponse) String ¶
func (x *CreateBuildingdataResponse) String() string
type HeightPlateau ¶
type HeightPlateau struct { Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty" bson:"_id"` // @gotags: bson:"_id" Elevation float64 `protobuf:"fixed64,2,opt,name=elevation,proto3" json:"elevation,omitempty" bson:"elevation"` // @gotags: bson:"elevation" PolygonCoordinates []*Coordinate `` // @gotags: bson:"polygon_coordinates" /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
func (*HeightPlateau) Descriptor
deprecated
func (*HeightPlateau) Descriptor() ([]byte, []int)
Deprecated: Use HeightPlateau.ProtoReflect.Descriptor instead.
func (*HeightPlateau) GetElevation ¶
func (x *HeightPlateau) GetElevation() float64
func (*HeightPlateau) GetId ¶
func (x *HeightPlateau) GetId() string
func (*HeightPlateau) GetPolygonCoordinates ¶
func (x *HeightPlateau) GetPolygonCoordinates() []*Coordinate
func (*HeightPlateau) ProtoMessage ¶
func (*HeightPlateau) ProtoMessage()
func (*HeightPlateau) ProtoReflect ¶
func (x *HeightPlateau) ProtoReflect() protoreflect.Message
func (*HeightPlateau) Reset ¶
func (x *HeightPlateau) Reset()
func (*HeightPlateau) String ¶
func (x *HeightPlateau) String() string
type RequestBuildingLimit ¶
type RequestBuildingLimit struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Features []*RequestFeatures `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*RequestBuildingLimit) Descriptor
deprecated
func (*RequestBuildingLimit) Descriptor() ([]byte, []int)
Deprecated: Use RequestBuildingLimit.ProtoReflect.Descriptor instead.
func (*RequestBuildingLimit) GetFeatures ¶
func (x *RequestBuildingLimit) GetFeatures() []*RequestFeatures
func (*RequestBuildingLimit) GetType ¶
func (x *RequestBuildingLimit) GetType() string
func (*RequestBuildingLimit) ProtoMessage ¶
func (*RequestBuildingLimit) ProtoMessage()
func (*RequestBuildingLimit) ProtoReflect ¶
func (x *RequestBuildingLimit) ProtoReflect() protoreflect.Message
func (*RequestBuildingLimit) Reset ¶
func (x *RequestBuildingLimit) Reset()
func (*RequestBuildingLimit) String ¶
func (x *RequestBuildingLimit) String() string
type RequestFeatures ¶
type RequestFeatures struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Properties *RequestProperties `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"` Geometry *RequestGeometry `protobuf:"bytes,3,opt,name=geometry,proto3" json:"geometry,omitempty"` // contains filtered or unexported fields }
func (*RequestFeatures) Descriptor
deprecated
func (*RequestFeatures) Descriptor() ([]byte, []int)
Deprecated: Use RequestFeatures.ProtoReflect.Descriptor instead.
func (*RequestFeatures) GetGeometry ¶
func (x *RequestFeatures) GetGeometry() *RequestGeometry
func (*RequestFeatures) GetProperties ¶
func (x *RequestFeatures) GetProperties() *RequestProperties
func (*RequestFeatures) GetType ¶
func (x *RequestFeatures) GetType() string
func (*RequestFeatures) ProtoMessage ¶
func (*RequestFeatures) ProtoMessage()
func (*RequestFeatures) ProtoReflect ¶
func (x *RequestFeatures) ProtoReflect() protoreflect.Message
func (*RequestFeatures) Reset ¶
func (x *RequestFeatures) Reset()
func (*RequestFeatures) String ¶
func (x *RequestFeatures) String() string
type RequestGeometry ¶
type RequestGeometry struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Coordinates *structpb.Value `protobuf:"bytes,2,opt,name=coordinates,proto3" json:"coordinates,omitempty"` // contains filtered or unexported fields }
func (*RequestGeometry) Descriptor
deprecated
func (*RequestGeometry) Descriptor() ([]byte, []int)
Deprecated: Use RequestGeometry.ProtoReflect.Descriptor instead.
func (*RequestGeometry) GetCoordinates ¶
func (x *RequestGeometry) GetCoordinates() *structpb.Value
func (*RequestGeometry) GetType ¶
func (x *RequestGeometry) GetType() string
func (*RequestGeometry) ProtoMessage ¶
func (*RequestGeometry) ProtoMessage()
func (*RequestGeometry) ProtoReflect ¶
func (x *RequestGeometry) ProtoReflect() protoreflect.Message
func (*RequestGeometry) Reset ¶
func (x *RequestGeometry) Reset()
func (*RequestGeometry) String ¶
func (x *RequestGeometry) String() string
type RequestHeightPlateau ¶
type RequestHeightPlateau struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Features []*RequestFeatures `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*RequestHeightPlateau) Descriptor
deprecated
func (*RequestHeightPlateau) Descriptor() ([]byte, []int)
Deprecated: Use RequestHeightPlateau.ProtoReflect.Descriptor instead.
func (*RequestHeightPlateau) GetFeatures ¶
func (x *RequestHeightPlateau) GetFeatures() []*RequestFeatures
func (*RequestHeightPlateau) GetType ¶
func (x *RequestHeightPlateau) GetType() string
func (*RequestHeightPlateau) ProtoMessage ¶
func (*RequestHeightPlateau) ProtoMessage()
func (*RequestHeightPlateau) ProtoReflect ¶
func (x *RequestHeightPlateau) ProtoReflect() protoreflect.Message
func (*RequestHeightPlateau) Reset ¶
func (x *RequestHeightPlateau) Reset()
func (*RequestHeightPlateau) String ¶
func (x *RequestHeightPlateau) String() string
type RequestProperties ¶
type RequestProperties struct { Elevation float64 `protobuf:"fixed64,1,opt,name=elevation,proto3" json:"elevation,omitempty"` // contains filtered or unexported fields }
func (*RequestProperties) Descriptor
deprecated
func (*RequestProperties) Descriptor() ([]byte, []int)
Deprecated: Use RequestProperties.ProtoReflect.Descriptor instead.
func (*RequestProperties) GetElevation ¶
func (x *RequestProperties) GetElevation() float64
func (*RequestProperties) ProtoMessage ¶
func (*RequestProperties) ProtoMessage()
func (*RequestProperties) ProtoReflect ¶
func (x *RequestProperties) ProtoReflect() protoreflect.Message
func (*RequestProperties) Reset ¶
func (x *RequestProperties) Reset()
func (*RequestProperties) String ¶
func (x *RequestProperties) String() string
type SplitBuildingLimit ¶
type SplitBuildingLimit struct { Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty" bson:"_id"` // @gotags: bson:"_id" CorrespondingHeightPlateauElevation float64 `` //@gotags: bson:"corresponding_height_plateau_elevation" /* 218-byte string literal not displayed */ PolygonCoordinates []*Coordinate `` // @gotags: bson:"polygon_coordinates" /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
func (*SplitBuildingLimit) Descriptor
deprecated
func (*SplitBuildingLimit) Descriptor() ([]byte, []int)
Deprecated: Use SplitBuildingLimit.ProtoReflect.Descriptor instead.
func (*SplitBuildingLimit) GetCorrespondingHeightPlateauElevation ¶
func (x *SplitBuildingLimit) GetCorrespondingHeightPlateauElevation() float64
func (*SplitBuildingLimit) GetId ¶
func (x *SplitBuildingLimit) GetId() string
func (*SplitBuildingLimit) GetPolygonCoordinates ¶
func (x *SplitBuildingLimit) GetPolygonCoordinates() []*Coordinate
func (*SplitBuildingLimit) ProtoMessage ¶
func (*SplitBuildingLimit) ProtoMessage()
func (*SplitBuildingLimit) ProtoReflect ¶
func (x *SplitBuildingLimit) ProtoReflect() protoreflect.Message
func (*SplitBuildingLimit) Reset ¶
func (x *SplitBuildingLimit) Reset()
func (*SplitBuildingLimit) String ¶
func (x *SplitBuildingLimit) String() string
type UnimplementedBuildingdataAccessServer ¶
type UnimplementedBuildingdataAccessServer struct { }
UnimplementedBuildingdataAccessServer must be embedded to have forward compatible implementations.
func (UnimplementedBuildingdataAccessServer) CreateBuildingdata ¶
func (UnimplementedBuildingdataAccessServer) CreateBuildingdata(context.Context, *CreateBuildingdataRequest) (*CreateBuildingdataResponse, error)
type UnsafeBuildingdataAccessServer ¶
type UnsafeBuildingdataAccessServer interface {
// contains filtered or unexported methods
}
UnsafeBuildingdataAccessServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuildingdataAccessServer will result in compilation errors.