pathfinder

package
v0.0.0-...-efc8d94 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pathfinder_proto protoreflect.FileDescriptor
View Source
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 (x *GetPathRequest) GetFinishLink() string
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

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.

Jump to

Keyboard shortcuts

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