rpc

package
v0.0.0-...-69178d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RouteService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "rpc.RouteService",
	HandlerType: (*RouteServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Resolve",
			Handler:    _RouteService_Resolve_Handler,
		},
		{
			MethodName: "ScanRegion",
			Handler:    _RouteService_ScanRegion_Handler,
		},
		{
			MethodName: "GetAssociatedObject",
			Handler:    _RouteService_GetAssociatedObject_Handler,
		},
		{
			MethodName: "SearchByNamePrefix",
			Handler:    _RouteService_SearchByNamePrefix_Handler,
		},
		{
			MethodName: "SearchByNameExact",
			Handler:    _RouteService_SearchByNameExact_Handler,
		},
		{
			MethodName: "Route",
			Handler:    _RouteService_Route_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "def.proto",
}

RouteService_ServiceDesc is the grpc.ServiceDesc for RouteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRouteServiceServer

func RegisterRouteServiceServer(s grpc.ServiceRegistrar, srv RouteServiceServer)

Types

type GetAssociatedObjectRequest

type GetAssociatedObjectRequest struct {
	FeatureID string `protobuf:"bytes,1,opt,name=FeatureID,proto3" json:"FeatureID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAssociatedObjectRequest) Descriptor deprecated

func (*GetAssociatedObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAssociatedObjectRequest.ProtoReflect.Descriptor instead.

func (*GetAssociatedObjectRequest) GetFeatureID

func (x *GetAssociatedObjectRequest) GetFeatureID() string

func (*GetAssociatedObjectRequest) ProtoMessage

func (*GetAssociatedObjectRequest) ProtoMessage()

func (*GetAssociatedObjectRequest) ProtoReflect

func (*GetAssociatedObjectRequest) Reset

func (x *GetAssociatedObjectRequest) Reset()

func (*GetAssociatedObjectRequest) String

func (x *GetAssociatedObjectRequest) String() string

type LocationAssociation

type LocationAssociation struct {
	Nodes *ObjectList `protobuf:"bytes,3,opt,name=Nodes,proto3" json:"Nodes,omitempty"`
	Lat   float64     `protobuf:"fixed64,1,opt,name=Lat,proto3" json:"Lat,omitempty"`
	Lon   float64     `protobuf:"fixed64,2,opt,name=Lon,proto3" json:"Lon,omitempty"`
	// contains filtered or unexported fields
}

func (*LocationAssociation) Descriptor deprecated

func (*LocationAssociation) Descriptor() ([]byte, []int)

Deprecated: Use LocationAssociation.ProtoReflect.Descriptor instead.

func (*LocationAssociation) GetLat

func (x *LocationAssociation) GetLat() float64

func (*LocationAssociation) GetLon

func (x *LocationAssociation) GetLon() float64

func (*LocationAssociation) GetNodes

func (x *LocationAssociation) GetNodes() *ObjectList

func (*LocationAssociation) ProtoMessage

func (*LocationAssociation) ProtoMessage()

func (*LocationAssociation) ProtoReflect

func (x *LocationAssociation) ProtoReflect() protoreflect.Message

func (*LocationAssociation) Reset

func (x *LocationAssociation) Reset()

func (*LocationAssociation) String

func (x *LocationAssociation) String() string

type NameList

type NameList struct {
	ObjectName []string `protobuf:"bytes,1,rep,name=ObjectName,proto3" json:"ObjectName,omitempty"`
	// contains filtered or unexported fields
}

func (*NameList) Descriptor deprecated

func (*NameList) Descriptor() ([]byte, []int)

Deprecated: Use NameList.ProtoReflect.Descriptor instead.

func (*NameList) GetObjectName

func (x *NameList) GetObjectName() []string

func (*NameList) ProtoMessage

func (*NameList) ProtoMessage()

func (*NameList) ProtoReflect

func (x *NameList) ProtoReflect() protoreflect.Message

func (*NameList) Reset

func (x *NameList) Reset()

func (*NameList) String

func (x *NameList) String() string

type NameSearch

type NameSearch struct {
	Keyword string `protobuf:"bytes,1,opt,name=Keyword,proto3" json:"Keyword,omitempty"`
	// contains filtered or unexported fields
}

func (*NameSearch) Descriptor deprecated

func (*NameSearch) Descriptor() ([]byte, []int)

Deprecated: Use NameSearch.ProtoReflect.Descriptor instead.

func (*NameSearch) GetKeyword

func (x *NameSearch) GetKeyword() string

func (*NameSearch) ProtoMessage

func (*NameSearch) ProtoMessage()

func (*NameSearch) ProtoReflect

func (x *NameSearch) ProtoReflect() protoreflect.Message

func (*NameSearch) Reset

func (x *NameSearch) Reset()

func (*NameSearch) String

func (x *NameSearch) String() string

type ObjectList

type ObjectList struct {
	FeatureID []string `protobuf:"bytes,1,rep,name=FeatureID,proto3" json:"FeatureID,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectList) Descriptor deprecated

func (*ObjectList) Descriptor() ([]byte, []int)

Deprecated: Use ObjectList.ProtoReflect.Descriptor instead.

func (*ObjectList) GetFeatureID

func (x *ObjectList) GetFeatureID() []string

func (*ObjectList) ProtoMessage

func (*ObjectList) ProtoMessage()

func (*ObjectList) ProtoReflect

func (x *ObjectList) ProtoReflect() protoreflect.Message

func (*ObjectList) Reset

func (x *ObjectList) Reset()

func (*ObjectList) String

func (x *ObjectList) String() string

type ObjectListWithAssociatedObjects

type ObjectListWithAssociatedObjects struct {
	FeatureID                     []string               `protobuf:"bytes,1,rep,name=FeatureID,proto3" json:"FeatureID,omitempty"`
	FeatureIDAndAssociatedObjects map[string]*ObjectList `` /* 199-byte string literal not displayed */
	LocationAssociation           []*LocationAssociation `protobuf:"bytes,3,rep,name=LocationAssociation,proto3" json:"LocationAssociation,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectListWithAssociatedObjects) Descriptor deprecated

func (*ObjectListWithAssociatedObjects) Descriptor() ([]byte, []int)

Deprecated: Use ObjectListWithAssociatedObjects.ProtoReflect.Descriptor instead.

func (*ObjectListWithAssociatedObjects) GetFeatureID

func (x *ObjectListWithAssociatedObjects) GetFeatureID() []string

func (*ObjectListWithAssociatedObjects) GetFeatureIDAndAssociatedObjects

func (x *ObjectListWithAssociatedObjects) GetFeatureIDAndAssociatedObjects() map[string]*ObjectList

func (*ObjectListWithAssociatedObjects) GetLocationAssociation

func (x *ObjectListWithAssociatedObjects) GetLocationAssociation() []*LocationAssociation

func (*ObjectListWithAssociatedObjects) ProtoMessage

func (*ObjectListWithAssociatedObjects) ProtoMessage()

func (*ObjectListWithAssociatedObjects) ProtoReflect

func (*ObjectListWithAssociatedObjects) Reset

func (*ObjectListWithAssociatedObjects) String

type ObjectResolveRequest

type ObjectResolveRequest struct {
	FeatureID       string `protobuf:"bytes,1,opt,name=FeatureID,proto3" json:"FeatureID,omitempty"`
	SkipIfNotCached bool   `protobuf:"varint,2,opt,name=SkipIfNotCached,proto3" json:"SkipIfNotCached,omitempty"`
	// contains filtered or unexported fields
}

func (*ObjectResolveRequest) Descriptor deprecated

func (*ObjectResolveRequest) Descriptor() ([]byte, []int)

Deprecated: Use ObjectResolveRequest.ProtoReflect.Descriptor instead.

func (*ObjectResolveRequest) GetFeatureID

func (x *ObjectResolveRequest) GetFeatureID() string

func (*ObjectResolveRequest) GetSkipIfNotCached

func (x *ObjectResolveRequest) GetSkipIfNotCached() bool

func (*ObjectResolveRequest) ProtoMessage

func (*ObjectResolveRequest) ProtoMessage()

func (*ObjectResolveRequest) ProtoReflect

func (x *ObjectResolveRequest) ProtoReflect() protoreflect.Message

func (*ObjectResolveRequest) Reset

func (x *ObjectResolveRequest) Reset()

func (*ObjectResolveRequest) String

func (x *ObjectResolveRequest) String() string

type ReturnedObject

type ReturnedObject struct {
	FeatureID     string `protobuf:"bytes,1,opt,name=FeatureID,proto3" json:"FeatureID,omitempty"`
	ObjectContent []byte `protobuf:"bytes,2,opt,name=ObjectContent,proto3" json:"ObjectContent,omitempty"`
	Found         bool   `protobuf:"varint,3,opt,name=Found,proto3" json:"Found,omitempty"`
	// contains filtered or unexported fields
}

func (*ReturnedObject) Descriptor deprecated

func (*ReturnedObject) Descriptor() ([]byte, []int)

Deprecated: Use ReturnedObject.ProtoReflect.Descriptor instead.

func (*ReturnedObject) GetFeatureID

func (x *ReturnedObject) GetFeatureID() string

func (*ReturnedObject) GetFound

func (x *ReturnedObject) GetFound() bool

func (*ReturnedObject) GetObjectContent

func (x *ReturnedObject) GetObjectContent() []byte

func (*ReturnedObject) ProtoMessage

func (*ReturnedObject) ProtoMessage()

func (*ReturnedObject) ProtoReflect

func (x *ReturnedObject) ProtoReflect() protoreflect.Message

func (*ReturnedObject) Reset

func (x *ReturnedObject) Reset()

func (*ReturnedObject) String

func (x *ReturnedObject) String() string

type RouteServiceClient

type RouteServiceClient interface {
	Resolve(ctx context.Context, in *ObjectResolveRequest, opts ...grpc.CallOption) (*ReturnedObject, error)
	ScanRegion(ctx context.Context, in *ScanRegionRequest, opts ...grpc.CallOption) (*ObjectListWithAssociatedObjects, error)
	GetAssociatedObject(ctx context.Context, in *GetAssociatedObjectRequest, opts ...grpc.CallOption) (*ObjectList, error)
	SearchByNamePrefix(ctx context.Context, in *NameSearch, opts ...grpc.CallOption) (*NameList, error)
	SearchByNameExact(ctx context.Context, in *NameSearch, opts ...grpc.CallOption) (*ObjectList, error)
	Route(ctx context.Context, in *RoutingDecisionReq, opts ...grpc.CallOption) (*RoutingDecisionResp, error)
}

RouteServiceClient is the client API for RouteService 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.

type RouteServiceServer

type RouteServiceServer interface {
	Resolve(context.Context, *ObjectResolveRequest) (*ReturnedObject, error)
	ScanRegion(context.Context, *ScanRegionRequest) (*ObjectListWithAssociatedObjects, error)
	GetAssociatedObject(context.Context, *GetAssociatedObjectRequest) (*ObjectList, error)
	SearchByNamePrefix(context.Context, *NameSearch) (*NameList, error)
	SearchByNameExact(context.Context, *NameSearch) (*ObjectList, error)
	Route(context.Context, *RoutingDecisionReq) (*RoutingDecisionResp, error)
	// contains filtered or unexported methods
}

RouteServiceServer is the server API for RouteService service. All implementations must embed UnimplementedRouteServiceServer for forward compatibility

type RoutingDecision

type RoutingDecision struct {
	AssociatedData map[string]string `` /* 169-byte string literal not displayed */
	Via            string            `protobuf:"bytes,2,opt,name=Via,proto3" json:"Via,omitempty"`
	From           string            `protobuf:"bytes,3,opt,name=From,proto3" json:"From,omitempty"`
	// contains filtered or unexported fields
}

func (*RoutingDecision) Descriptor deprecated

func (*RoutingDecision) Descriptor() ([]byte, []int)

Deprecated: Use RoutingDecision.ProtoReflect.Descriptor instead.

func (*RoutingDecision) GetAssociatedData

func (x *RoutingDecision) GetAssociatedData() map[string]string

func (*RoutingDecision) GetFrom

func (x *RoutingDecision) GetFrom() string

func (*RoutingDecision) GetVia

func (x *RoutingDecision) GetVia() string

func (*RoutingDecision) ProtoMessage

func (*RoutingDecision) ProtoMessage()

func (*RoutingDecision) ProtoReflect

func (x *RoutingDecision) ProtoReflect() protoreflect.Message

func (*RoutingDecision) Reset

func (x *RoutingDecision) Reset()

func (*RoutingDecision) String

func (x *RoutingDecision) String() string

type RoutingDecisionReq

type RoutingDecisionReq struct {
	From           *RoutingDecisionReqLocation `protobuf:"bytes,1,opt,name=From,proto3" json:"From,omitempty"`
	To             *RoutingDecisionReqLocation `protobuf:"bytes,2,opt,name=To,proto3" json:"To,omitempty"`
	AdditionalInfo map[string]string           `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RoutingDecisionReq) Descriptor deprecated

func (*RoutingDecisionReq) Descriptor() ([]byte, []int)

Deprecated: Use RoutingDecisionReq.ProtoReflect.Descriptor instead.

func (*RoutingDecisionReq) GetAdditionalInfo

func (x *RoutingDecisionReq) GetAdditionalInfo() map[string]string

func (*RoutingDecisionReq) GetFrom

func (*RoutingDecisionReq) GetTo

func (*RoutingDecisionReq) ProtoMessage

func (*RoutingDecisionReq) ProtoMessage()

func (*RoutingDecisionReq) ProtoReflect

func (x *RoutingDecisionReq) ProtoReflect() protoreflect.Message

func (*RoutingDecisionReq) Reset

func (x *RoutingDecisionReq) Reset()

func (*RoutingDecisionReq) String

func (x *RoutingDecisionReq) String() string

type RoutingDecisionReqLocation

type RoutingDecisionReqLocation struct {
	Lat float64 `protobuf:"fixed64,1,opt,name=Lat,proto3" json:"Lat,omitempty"`
	Lon float64 `protobuf:"fixed64,2,opt,name=Lon,proto3" json:"Lon,omitempty"`
	// contains filtered or unexported fields
}

func (*RoutingDecisionReqLocation) Descriptor deprecated

func (*RoutingDecisionReqLocation) Descriptor() ([]byte, []int)

Deprecated: Use RoutingDecisionReqLocation.ProtoReflect.Descriptor instead.

func (*RoutingDecisionReqLocation) GetLat

func (x *RoutingDecisionReqLocation) GetLat() float64

func (*RoutingDecisionReqLocation) GetLon

func (x *RoutingDecisionReqLocation) GetLon() float64

func (*RoutingDecisionReqLocation) ProtoMessage

func (*RoutingDecisionReqLocation) ProtoMessage()

func (*RoutingDecisionReqLocation) ProtoReflect

func (*RoutingDecisionReqLocation) Reset

func (x *RoutingDecisionReqLocation) Reset()

func (*RoutingDecisionReqLocation) String

func (x *RoutingDecisionReqLocation) String() string

type RoutingDecisionResp

type RoutingDecisionResp struct {
	Hops []*RoutingDecision `protobuf:"bytes,1,rep,name=Hops,proto3" json:"Hops,omitempty"`
	Code int32              `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string             `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*RoutingDecisionResp) Descriptor deprecated

func (*RoutingDecisionResp) Descriptor() ([]byte, []int)

Deprecated: Use RoutingDecisionResp.ProtoReflect.Descriptor instead.

func (*RoutingDecisionResp) GetCode

func (x *RoutingDecisionResp) GetCode() int32

func (*RoutingDecisionResp) GetHops

func (x *RoutingDecisionResp) GetHops() []*RoutingDecision

func (*RoutingDecisionResp) GetMsg

func (x *RoutingDecisionResp) GetMsg() string

func (*RoutingDecisionResp) ProtoMessage

func (*RoutingDecisionResp) ProtoMessage()

func (*RoutingDecisionResp) ProtoReflect

func (x *RoutingDecisionResp) ProtoReflect() protoreflect.Message

func (*RoutingDecisionResp) Reset

func (x *RoutingDecisionResp) Reset()

func (*RoutingDecisionResp) String

func (x *RoutingDecisionResp) String() string

type ScanRegionRequest

type ScanRegionRequest struct {
	Lat float64 `protobuf:"fixed64,1,opt,name=Lat,proto3" json:"Lat,omitempty"`
	Lon float64 `protobuf:"fixed64,2,opt,name=Lon,proto3" json:"Lon,omitempty"`
	// contains filtered or unexported fields
}

func (*ScanRegionRequest) Descriptor deprecated

func (*ScanRegionRequest) Descriptor() ([]byte, []int)

Deprecated: Use ScanRegionRequest.ProtoReflect.Descriptor instead.

func (*ScanRegionRequest) GetLat

func (x *ScanRegionRequest) GetLat() float64

func (*ScanRegionRequest) GetLon

func (x *ScanRegionRequest) GetLon() float64

func (*ScanRegionRequest) ProtoMessage

func (*ScanRegionRequest) ProtoMessage()

func (*ScanRegionRequest) ProtoReflect

func (x *ScanRegionRequest) ProtoReflect() protoreflect.Message

func (*ScanRegionRequest) Reset

func (x *ScanRegionRequest) Reset()

func (*ScanRegionRequest) String

func (x *ScanRegionRequest) String() string

type UnimplementedRouteServiceServer

type UnimplementedRouteServiceServer struct {
}

UnimplementedRouteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRouteServiceServer) GetAssociatedObject

func (UnimplementedRouteServiceServer) Resolve

func (UnimplementedRouteServiceServer) Route

func (UnimplementedRouteServiceServer) SearchByNameExact

func (UnimplementedRouteServiceServer) SearchByNamePrefix

type UnsafeRouteServiceServer

type UnsafeRouteServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRouteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RouteServiceServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL