Documentation ¶
Index ¶
- Variables
- func RegisterLinkServer(s grpc.ServiceRegistrar, srv LinkServer)
- type FinishRequest
- type FinishResponse
- type InitRequest
- type InitResponse
- type LinkClient
- type LinkServer
- type ReconstructRequest
- func (*ReconstructRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReconstructRequest) GetRequestId() uint64
- func (x *ReconstructRequest) GetVertexId() int64
- func (*ReconstructRequest) ProtoMessage()
- func (x *ReconstructRequest) ProtoReflect() protoreflect.Message
- func (x *ReconstructRequest) Reset()
- func (x *ReconstructRequest) String() string
- type ReconstructResponse
- func (*ReconstructResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReconstructResponse) GetPath() []int64
- func (*ReconstructResponse) ProtoMessage()
- func (x *ReconstructResponse) ProtoReflect() protoreflect.Message
- func (x *ReconstructResponse) Reset()
- func (x *ReconstructResponse) String() string
- type StepRequest
- func (*StepRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StepRequest) GetDistance() float64
- func (x *StepRequest) GetRequestId() uint64
- func (x *StepRequest) GetThrough() int64
- func (x *StepRequest) GetVertexId() int64
- func (*StepRequest) ProtoMessage()
- func (x *StepRequest) ProtoReflect() protoreflect.Message
- func (x *StepRequest) Reset()
- func (x *StepRequest) String() string
- type StepResponse
- func (*StepResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StepResponse) GetDistance() float64
- func (x *StepResponse) GetThrough() int64
- func (x *StepResponse) GetVertexId() int64
- func (*StepResponse) ProtoMessage()
- func (x *StepResponse) ProtoReflect() protoreflect.Message
- func (x *StepResponse) Reset()
- func (x *StepResponse) String() string
- type UnimplementedLinkServer
- func (UnimplementedLinkServer) Finish(context.Context, *FinishRequest) (*FinishResponse, error)
- func (UnimplementedLinkServer) Init(context.Context, *InitRequest) (*InitResponse, error)
- func (UnimplementedLinkServer) Reconstruct(context.Context, *ReconstructRequest) (*ReconstructResponse, error)
- func (UnimplementedLinkServer) Step(context.Context, *StepRequest) (*StepResponse, error)
- type UnsafeLinkServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_link_proto protoreflect.FileDescriptor
var Link_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Link", HandlerType: (*LinkServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Init", Handler: _Link_Init_Handler, }, { MethodName: "Step", Handler: _Link_Step_Handler, }, { MethodName: "Reconstruct", Handler: _Link_Reconstruct_Handler, }, { MethodName: "Finish", Handler: _Link_Finish_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/link.proto", }
Link_ServiceDesc is the grpc.ServiceDesc for Link service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLinkServer ¶
func RegisterLinkServer(s grpc.ServiceRegistrar, srv LinkServer)
Types ¶
type FinishRequest ¶
type FinishRequest struct { RequestId uint64 `protobuf:"varint,1,opt,name=requestId,proto3" json:"requestId,omitempty"` // contains filtered or unexported fields }
func (*FinishRequest) Descriptor
deprecated
func (*FinishRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinishRequest.ProtoReflect.Descriptor instead.
func (*FinishRequest) GetRequestId ¶
func (x *FinishRequest) GetRequestId() uint64
func (*FinishRequest) ProtoMessage ¶
func (*FinishRequest) ProtoMessage()
func (*FinishRequest) ProtoReflect ¶
func (x *FinishRequest) ProtoReflect() protoreflect.Message
func (*FinishRequest) Reset ¶
func (x *FinishRequest) Reset()
func (*FinishRequest) String ¶
func (x *FinishRequest) String() string
type FinishResponse ¶
type FinishResponse struct {
// contains filtered or unexported fields
}
func (*FinishResponse) Descriptor
deprecated
func (*FinishResponse) Descriptor() ([]byte, []int)
Deprecated: Use FinishResponse.ProtoReflect.Descriptor instead.
func (*FinishResponse) ProtoMessage ¶
func (*FinishResponse) ProtoMessage()
func (*FinishResponse) ProtoReflect ¶
func (x *FinishResponse) ProtoReflect() protoreflect.Message
func (*FinishResponse) Reset ¶
func (x *FinishResponse) Reset()
func (*FinishResponse) String ¶
func (x *FinishResponse) String() string
type InitRequest ¶
type InitRequest struct { RequestId uint64 `protobuf:"varint,1,opt,name=requestId,proto3" json:"requestId,omitempty"` // contains filtered or unexported fields }
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) GetRequestId ¶
func (x *InitRequest) GetRequestId() uint64
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) ProtoReflect ¶
func (x *InitRequest) ProtoReflect() protoreflect.Message
func (*InitRequest) Reset ¶
func (x *InitRequest) Reset()
func (*InitRequest) String ¶
func (x *InitRequest) String() string
type InitResponse ¶
type InitResponse struct {
// contains filtered or unexported fields
}
func (*InitResponse) Descriptor
deprecated
func (*InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) ProtoReflect ¶
func (x *InitResponse) ProtoReflect() protoreflect.Message
func (*InitResponse) Reset ¶
func (x *InitResponse) Reset()
func (*InitResponse) String ¶
func (x *InitResponse) String() string
type LinkClient ¶
type LinkClient interface { Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error) Step(ctx context.Context, in *StepRequest, opts ...grpc.CallOption) (*StepResponse, error) Reconstruct(ctx context.Context, in *ReconstructRequest, opts ...grpc.CallOption) (*ReconstructResponse, error) Finish(ctx context.Context, in *FinishRequest, opts ...grpc.CallOption) (*FinishResponse, error) }
LinkClient is the client API for Link 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 NewLinkClient ¶
func NewLinkClient(cc grpc.ClientConnInterface) LinkClient
type LinkServer ¶
type LinkServer interface { Init(context.Context, *InitRequest) (*InitResponse, error) Step(context.Context, *StepRequest) (*StepResponse, error) Reconstruct(context.Context, *ReconstructRequest) (*ReconstructResponse, error) Finish(context.Context, *FinishRequest) (*FinishResponse, error) // contains filtered or unexported methods }
LinkServer is the server API for Link service. All implementations must embed UnimplementedLinkServer for forward compatibility
type ReconstructRequest ¶
type ReconstructRequest struct { VertexId int64 `protobuf:"varint,1,opt,name=vertexId,proto3" json:"vertexId,omitempty"` RequestId uint64 `protobuf:"varint,2,opt,name=requestId,proto3" json:"requestId,omitempty"` // contains filtered or unexported fields }
func (*ReconstructRequest) Descriptor
deprecated
func (*ReconstructRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReconstructRequest.ProtoReflect.Descriptor instead.
func (*ReconstructRequest) GetRequestId ¶
func (x *ReconstructRequest) GetRequestId() uint64
func (*ReconstructRequest) GetVertexId ¶
func (x *ReconstructRequest) GetVertexId() int64
func (*ReconstructRequest) ProtoMessage ¶
func (*ReconstructRequest) ProtoMessage()
func (*ReconstructRequest) ProtoReflect ¶
func (x *ReconstructRequest) ProtoReflect() protoreflect.Message
func (*ReconstructRequest) Reset ¶
func (x *ReconstructRequest) Reset()
func (*ReconstructRequest) String ¶
func (x *ReconstructRequest) String() string
type ReconstructResponse ¶
type ReconstructResponse struct { Path []int64 `protobuf:"varint,1,rep,packed,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*ReconstructResponse) Descriptor
deprecated
func (*ReconstructResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReconstructResponse.ProtoReflect.Descriptor instead.
func (*ReconstructResponse) GetPath ¶
func (x *ReconstructResponse) GetPath() []int64
func (*ReconstructResponse) ProtoMessage ¶
func (*ReconstructResponse) ProtoMessage()
func (*ReconstructResponse) ProtoReflect ¶
func (x *ReconstructResponse) ProtoReflect() protoreflect.Message
func (*ReconstructResponse) Reset ¶
func (x *ReconstructResponse) Reset()
func (*ReconstructResponse) String ¶
func (x *ReconstructResponse) String() string
type StepRequest ¶
type StepRequest struct { VertexId int64 `protobuf:"varint,1,opt,name=vertexId,proto3" json:"vertexId,omitempty"` Distance float64 `protobuf:"fixed64,2,opt,name=distance,proto3" json:"distance,omitempty"` Through int64 `protobuf:"varint,3,opt,name=through,proto3" json:"through,omitempty"` RequestId uint64 `protobuf:"varint,4,opt,name=requestId,proto3" json:"requestId,omitempty"` // contains filtered or unexported fields }
func (*StepRequest) Descriptor
deprecated
func (*StepRequest) Descriptor() ([]byte, []int)
Deprecated: Use StepRequest.ProtoReflect.Descriptor instead.
func (*StepRequest) GetDistance ¶
func (x *StepRequest) GetDistance() float64
func (*StepRequest) GetRequestId ¶
func (x *StepRequest) GetRequestId() uint64
func (*StepRequest) GetThrough ¶
func (x *StepRequest) GetThrough() int64
func (*StepRequest) GetVertexId ¶
func (x *StepRequest) GetVertexId() int64
func (*StepRequest) ProtoMessage ¶
func (*StepRequest) ProtoMessage()
func (*StepRequest) ProtoReflect ¶
func (x *StepRequest) ProtoReflect() protoreflect.Message
func (*StepRequest) Reset ¶
func (x *StepRequest) Reset()
func (*StepRequest) String ¶
func (x *StepRequest) String() string
type StepResponse ¶
type StepResponse struct { VertexId int64 `protobuf:"varint,1,opt,name=vertexId,proto3" json:"vertexId,omitempty"` Distance float64 `protobuf:"fixed64,2,opt,name=distance,proto3" json:"distance,omitempty"` Through int64 `protobuf:"varint,3,opt,name=through,proto3" json:"through,omitempty"` // contains filtered or unexported fields }
func (*StepResponse) Descriptor
deprecated
func (*StepResponse) Descriptor() ([]byte, []int)
Deprecated: Use StepResponse.ProtoReflect.Descriptor instead.
func (*StepResponse) GetDistance ¶
func (x *StepResponse) GetDistance() float64
func (*StepResponse) GetThrough ¶
func (x *StepResponse) GetThrough() int64
func (*StepResponse) GetVertexId ¶
func (x *StepResponse) GetVertexId() int64
func (*StepResponse) ProtoMessage ¶
func (*StepResponse) ProtoMessage()
func (*StepResponse) ProtoReflect ¶
func (x *StepResponse) ProtoReflect() protoreflect.Message
func (*StepResponse) Reset ¶
func (x *StepResponse) Reset()
func (*StepResponse) String ¶
func (x *StepResponse) String() string
type UnimplementedLinkServer ¶
type UnimplementedLinkServer struct { }
UnimplementedLinkServer must be embedded to have forward compatible implementations.
func (UnimplementedLinkServer) Finish ¶
func (UnimplementedLinkServer) Finish(context.Context, *FinishRequest) (*FinishResponse, error)
func (UnimplementedLinkServer) Init ¶
func (UnimplementedLinkServer) Init(context.Context, *InitRequest) (*InitResponse, error)
func (UnimplementedLinkServer) Reconstruct ¶
func (UnimplementedLinkServer) Reconstruct(context.Context, *ReconstructRequest) (*ReconstructResponse, error)
func (UnimplementedLinkServer) Step ¶
func (UnimplementedLinkServer) Step(context.Context, *StepRequest) (*StepResponse, error)
type UnsafeLinkServer ¶
type UnsafeLinkServer interface {
// contains filtered or unexported methods
}
UnsafeLinkServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LinkServer will result in compilation errors.