Documentation ¶
Index ¶
- Variables
- func RegisterPathFinderServer(s grpc.ServiceRegistrar, srv PathFinderServer)
- type GetPathRequest
- func (*GetPathRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPathRequest) GetFinishLink() string
- func (x *GetPathRequest) GetStartLink() string
- func (x *GetPathRequest) GetUuid() string
- func (*GetPathRequest) ProtoMessage()
- func (x *GetPathRequest) ProtoReflect() protoreflect.Message
- func (x *GetPathRequest) Reset()
- func (x *GetPathRequest) String() string
- type GetPathResponse
- func (*GetPathResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPathResponse) GetPath() []string
- func (x *GetPathResponse) GetPathLength() int64
- func (x *GetPathResponse) GetUuid() string
- func (*GetPathResponse) ProtoMessage()
- func (x *GetPathResponse) ProtoReflect() protoreflect.Message
- func (x *GetPathResponse) Reset()
- func (x *GetPathResponse) String() string
- type PathFinderClient
- type PathFinderServer
- type UnimplementedPathFinderServer
- type UnsafePathFinderServer
Constants ¶
This section is empty.
Variables ¶
var File_pathfinder_proto protoreflect.FileDescriptor
var PathFinder_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pathfinder.PathFinder", HandlerType: (*PathFinderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPath", Handler: _PathFinder_GetPath_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pathfinder.proto", }
PathFinder_ServiceDesc is the grpc.ServiceDesc for PathFinder service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPathFinderServer ¶
func RegisterPathFinderServer(s grpc.ServiceRegistrar, srv PathFinderServer)
Types ¶
type GetPathRequest ¶
type GetPathRequest struct { StartLink string `protobuf:"bytes,1,opt,name=start_link,json=startLink,proto3" json:"start_link,omitempty"` FinishLink string `protobuf:"bytes,2,opt,name=finish_link,json=finishLink,proto3" json:"finish_link,omitempty"` Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*GetPathRequest) Descriptor
deprecated
func (*GetPathRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPathRequest.ProtoReflect.Descriptor instead.
func (*GetPathRequest) GetFinishLink ¶
func (x *GetPathRequest) GetFinishLink() string
func (*GetPathRequest) GetStartLink ¶
func (x *GetPathRequest) GetStartLink() string
func (*GetPathRequest) GetUuid ¶
func (x *GetPathRequest) GetUuid() string
func (*GetPathRequest) ProtoMessage ¶
func (*GetPathRequest) ProtoMessage()
func (*GetPathRequest) ProtoReflect ¶
func (x *GetPathRequest) ProtoReflect() protoreflect.Message
func (*GetPathRequest) Reset ¶
func (x *GetPathRequest) Reset()
func (*GetPathRequest) String ¶
func (x *GetPathRequest) String() string
type GetPathResponse ¶
type GetPathResponse struct { PathLength int64 `protobuf:"varint,1,opt,name=path_length,json=pathLength,proto3" json:"path_length,omitempty"` Path []string `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*GetPathResponse) Descriptor
deprecated
func (*GetPathResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPathResponse.ProtoReflect.Descriptor instead.
func (*GetPathResponse) GetPath ¶
func (x *GetPathResponse) GetPath() []string
func (*GetPathResponse) GetPathLength ¶
func (x *GetPathResponse) GetPathLength() int64
func (*GetPathResponse) GetUuid ¶
func (x *GetPathResponse) GetUuid() string
func (*GetPathResponse) ProtoMessage ¶
func (*GetPathResponse) ProtoMessage()
func (*GetPathResponse) ProtoReflect ¶
func (x *GetPathResponse) ProtoReflect() protoreflect.Message
func (*GetPathResponse) Reset ¶
func (x *GetPathResponse) Reset()
func (*GetPathResponse) String ¶
func (x *GetPathResponse) String() string
type PathFinderClient ¶
type PathFinderClient interface {
GetPath(ctx context.Context, in *GetPathRequest, opts ...grpc.CallOption) (*GetPathResponse, error)
}
PathFinderClient is the client API for PathFinder 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 NewPathFinderClient ¶
func NewPathFinderClient(cc grpc.ClientConnInterface) PathFinderClient
type PathFinderServer ¶
type PathFinderServer interface { GetPath(context.Context, *GetPathRequest) (*GetPathResponse, error) // contains filtered or unexported methods }
PathFinderServer is the server API for PathFinder service. All implementations must embed UnimplementedPathFinderServer for forward compatibility
type UnimplementedPathFinderServer ¶
type UnimplementedPathFinderServer struct { }
UnimplementedPathFinderServer must be embedded to have forward compatible implementations.
func (UnimplementedPathFinderServer) GetPath ¶
func (UnimplementedPathFinderServer) GetPath(context.Context, *GetPathRequest) (*GetPathResponse, error)
type UnsafePathFinderServer ¶
type UnsafePathFinderServer interface {
// contains filtered or unexported methods
}
UnsafePathFinderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PathFinderServer will result in compilation errors.