Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterGantryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterGantryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GantryServiceClient) error
- func RegisterGantryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterGantryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GantryServiceServer) error
- func RegisterGantryServiceServer(s grpc.ServiceRegistrar, srv GantryServiceServer)
- type GantryServiceClient
- type GantryServiceServer
- type GetLengthsRequest
- func (*GetLengthsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLengthsRequest) GetExtra() *structpb.Struct
- func (x *GetLengthsRequest) GetName() string
- func (*GetLengthsRequest) ProtoMessage()
- func (x *GetLengthsRequest) ProtoReflect() protoreflect.Message
- func (x *GetLengthsRequest) Reset()
- func (x *GetLengthsRequest) String() string
- type GetLengthsResponse
- func (*GetLengthsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLengthsResponse) GetLengthsMm() []float64
- func (*GetLengthsResponse) ProtoMessage()
- func (x *GetLengthsResponse) ProtoReflect() protoreflect.Message
- func (x *GetLengthsResponse) Reset()
- func (x *GetLengthsResponse) String() string
- type GetPositionRequest
- func (*GetPositionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPositionRequest) GetExtra() *structpb.Struct
- func (x *GetPositionRequest) GetName() string
- func (*GetPositionRequest) ProtoMessage()
- func (x *GetPositionRequest) ProtoReflect() protoreflect.Message
- func (x *GetPositionRequest) Reset()
- func (x *GetPositionRequest) String() string
- type GetPositionResponse
- func (*GetPositionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPositionResponse) GetPositionsMm() []float64
- func (*GetPositionResponse) ProtoMessage()
- func (x *GetPositionResponse) ProtoReflect() protoreflect.Message
- func (x *GetPositionResponse) Reset()
- func (x *GetPositionResponse) String() string
- type MoveToPositionRequest
- func (*MoveToPositionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MoveToPositionRequest) GetExtra() *structpb.Struct
- func (x *MoveToPositionRequest) GetName() string
- func (x *MoveToPositionRequest) GetPositionsMm() []float64
- func (x *MoveToPositionRequest) GetWorldState() *v1.WorldState
- func (*MoveToPositionRequest) ProtoMessage()
- func (x *MoveToPositionRequest) ProtoReflect() protoreflect.Message
- func (x *MoveToPositionRequest) Reset()
- func (x *MoveToPositionRequest) String() string
- type MoveToPositionResponse
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetIsMoving() bool
- func (x *Status) GetLengthsMm() []float64
- func (x *Status) GetPositionsMm() []float64
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- type StopRequest
- func (*StopRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopRequest) GetExtra() *structpb.Struct
- func (x *StopRequest) GetName() string
- func (*StopRequest) ProtoMessage()
- func (x *StopRequest) ProtoReflect() protoreflect.Message
- func (x *StopRequest) Reset()
- func (x *StopRequest) String() string
- type StopResponse
- type UnimplementedGantryServiceServer
- func (UnimplementedGantryServiceServer) GetLengths(context.Context, *GetLengthsRequest) (*GetLengthsResponse, error)
- func (UnimplementedGantryServiceServer) GetPosition(context.Context, *GetPositionRequest) (*GetPositionResponse, error)
- func (UnimplementedGantryServiceServer) MoveToPosition(context.Context, *MoveToPositionRequest) (*MoveToPositionResponse, error)
- func (UnimplementedGantryServiceServer) Stop(context.Context, *StopRequest) (*StopResponse, error)
- type UnsafeGantryServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_api_component_gantry_v1_gantry_proto protoreflect.FileDescriptor
var GantryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.api.component.gantry.v1.GantryService", HandlerType: (*GantryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPosition", Handler: _GantryService_GetPosition_Handler, }, { MethodName: "MoveToPosition", Handler: _GantryService_MoveToPosition_Handler, }, { MethodName: "GetLengths", Handler: _GantryService_GetLengths_Handler, }, { MethodName: "Stop", Handler: _GantryService_Stop_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/api/component/gantry/v1/gantry.proto", }
GantryService_ServiceDesc is the grpc.ServiceDesc for GantryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGantryServiceHandler ¶
func RegisterGantryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterGantryServiceHandler registers the http handlers for service GantryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterGantryServiceHandlerClient ¶
func RegisterGantryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GantryServiceClient) error
RegisterGantryServiceHandlerClient registers the http handlers for service GantryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "GantryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "GantryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "GantryServiceClient" to call the correct interceptors.
func RegisterGantryServiceHandlerFromEndpoint ¶
func RegisterGantryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterGantryServiceHandlerFromEndpoint is same as RegisterGantryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterGantryServiceHandlerServer ¶
func RegisterGantryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GantryServiceServer) error
RegisterGantryServiceHandlerServer registers the http handlers for service GantryService to "mux". UnaryRPC :call GantryServiceServer 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 RegisterGantryServiceHandlerFromEndpoint instead.
func RegisterGantryServiceServer ¶
func RegisterGantryServiceServer(s grpc.ServiceRegistrar, srv GantryServiceServer)
Types ¶
type GantryServiceClient ¶
type GantryServiceClient interface { // GetPosition gets the current position of a gantry of the underlying robot. GetPosition(ctx context.Context, in *GetPositionRequest, opts ...grpc.CallOption) (*GetPositionResponse, error) // MoveToPosition moves a gantry of the underlying robot to the requested position. MoveToPosition(ctx context.Context, in *MoveToPositionRequest, opts ...grpc.CallOption) (*MoveToPositionResponse, error) // GetLengths gets the lengths of a gantry of the underlying robot. GetLengths(ctx context.Context, in *GetLengthsRequest, opts ...grpc.CallOption) (*GetLengthsResponse, error) // Stop stops a robot's gantry Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) }
GantryServiceClient is the client API for GantryService 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 NewGantryServiceClient ¶
func NewGantryServiceClient(cc grpc.ClientConnInterface) GantryServiceClient
type GantryServiceServer ¶
type GantryServiceServer interface { // GetPosition gets the current position of a gantry of the underlying robot. GetPosition(context.Context, *GetPositionRequest) (*GetPositionResponse, error) // MoveToPosition moves a gantry of the underlying robot to the requested position. MoveToPosition(context.Context, *MoveToPositionRequest) (*MoveToPositionResponse, error) // GetLengths gets the lengths of a gantry of the underlying robot. GetLengths(context.Context, *GetLengthsRequest) (*GetLengthsResponse, error) // Stop stops a robot's gantry Stop(context.Context, *StopRequest) (*StopResponse, error) // contains filtered or unexported methods }
GantryServiceServer is the server API for GantryService service. All implementations must embed UnimplementedGantryServiceServer for forward compatibility
type GetLengthsRequest ¶
type GetLengthsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetLengthsRequest) Descriptor
deprecated
func (*GetLengthsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLengthsRequest.ProtoReflect.Descriptor instead.
func (*GetLengthsRequest) GetExtra ¶
func (x *GetLengthsRequest) GetExtra() *structpb.Struct
func (*GetLengthsRequest) GetName ¶
func (x *GetLengthsRequest) GetName() string
func (*GetLengthsRequest) ProtoMessage ¶
func (*GetLengthsRequest) ProtoMessage()
func (*GetLengthsRequest) ProtoReflect ¶
func (x *GetLengthsRequest) ProtoReflect() protoreflect.Message
func (*GetLengthsRequest) Reset ¶
func (x *GetLengthsRequest) Reset()
func (*GetLengthsRequest) String ¶
func (x *GetLengthsRequest) String() string
type GetLengthsResponse ¶
type GetLengthsResponse struct { LengthsMm []float64 `protobuf:"fixed64,1,rep,packed,name=lengths_mm,json=lengthsMm,proto3" json:"lengths_mm,omitempty"` // contains filtered or unexported fields }
func (*GetLengthsResponse) Descriptor
deprecated
func (*GetLengthsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLengthsResponse.ProtoReflect.Descriptor instead.
func (*GetLengthsResponse) GetLengthsMm ¶
func (x *GetLengthsResponse) GetLengthsMm() []float64
func (*GetLengthsResponse) ProtoMessage ¶
func (*GetLengthsResponse) ProtoMessage()
func (*GetLengthsResponse) ProtoReflect ¶
func (x *GetLengthsResponse) ProtoReflect() protoreflect.Message
func (*GetLengthsResponse) Reset ¶
func (x *GetLengthsResponse) Reset()
func (*GetLengthsResponse) String ¶
func (x *GetLengthsResponse) String() string
type GetPositionRequest ¶
type GetPositionRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*GetPositionRequest) Descriptor
deprecated
func (*GetPositionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPositionRequest.ProtoReflect.Descriptor instead.
func (*GetPositionRequest) GetExtra ¶
func (x *GetPositionRequest) GetExtra() *structpb.Struct
func (*GetPositionRequest) GetName ¶
func (x *GetPositionRequest) GetName() string
func (*GetPositionRequest) ProtoMessage ¶
func (*GetPositionRequest) ProtoMessage()
func (*GetPositionRequest) ProtoReflect ¶
func (x *GetPositionRequest) ProtoReflect() protoreflect.Message
func (*GetPositionRequest) Reset ¶
func (x *GetPositionRequest) Reset()
func (*GetPositionRequest) String ¶
func (x *GetPositionRequest) String() string
type GetPositionResponse ¶
type GetPositionResponse struct { PositionsMm []float64 `protobuf:"fixed64,1,rep,packed,name=positions_mm,json=positionsMm,proto3" json:"positions_mm,omitempty"` // contains filtered or unexported fields }
func (*GetPositionResponse) Descriptor
deprecated
func (*GetPositionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPositionResponse.ProtoReflect.Descriptor instead.
func (*GetPositionResponse) GetPositionsMm ¶
func (x *GetPositionResponse) GetPositionsMm() []float64
func (*GetPositionResponse) ProtoMessage ¶
func (*GetPositionResponse) ProtoMessage()
func (*GetPositionResponse) ProtoReflect ¶
func (x *GetPositionResponse) ProtoReflect() protoreflect.Message
func (*GetPositionResponse) Reset ¶
func (x *GetPositionResponse) Reset()
func (*GetPositionResponse) String ¶
func (x *GetPositionResponse) String() string
type MoveToPositionRequest ¶
type MoveToPositionRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` PositionsMm []float64 `protobuf:"fixed64,2,rep,packed,name=positions_mm,json=positionsMm,proto3" json:"positions_mm,omitempty"` WorldState *v1.WorldState `protobuf:"bytes,3,opt,name=world_state,json=worldState,proto3,oneof" json:"world_state,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*MoveToPositionRequest) Descriptor
deprecated
func (*MoveToPositionRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoveToPositionRequest.ProtoReflect.Descriptor instead.
func (*MoveToPositionRequest) GetExtra ¶
func (x *MoveToPositionRequest) GetExtra() *structpb.Struct
func (*MoveToPositionRequest) GetName ¶
func (x *MoveToPositionRequest) GetName() string
func (*MoveToPositionRequest) GetPositionsMm ¶
func (x *MoveToPositionRequest) GetPositionsMm() []float64
func (*MoveToPositionRequest) GetWorldState ¶
func (x *MoveToPositionRequest) GetWorldState() *v1.WorldState
func (*MoveToPositionRequest) ProtoMessage ¶
func (*MoveToPositionRequest) ProtoMessage()
func (*MoveToPositionRequest) ProtoReflect ¶
func (x *MoveToPositionRequest) ProtoReflect() protoreflect.Message
func (*MoveToPositionRequest) Reset ¶
func (x *MoveToPositionRequest) Reset()
func (*MoveToPositionRequest) String ¶
func (x *MoveToPositionRequest) String() string
type MoveToPositionResponse ¶
type MoveToPositionResponse struct {
// contains filtered or unexported fields
}
func (*MoveToPositionResponse) Descriptor
deprecated
func (*MoveToPositionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MoveToPositionResponse.ProtoReflect.Descriptor instead.
func (*MoveToPositionResponse) ProtoMessage ¶
func (*MoveToPositionResponse) ProtoMessage()
func (*MoveToPositionResponse) ProtoReflect ¶
func (x *MoveToPositionResponse) ProtoReflect() protoreflect.Message
func (*MoveToPositionResponse) Reset ¶
func (x *MoveToPositionResponse) Reset()
func (*MoveToPositionResponse) String ¶
func (x *MoveToPositionResponse) String() string
type Status ¶
type Status struct { PositionsMm []float64 `protobuf:"fixed64,1,rep,packed,name=positions_mm,json=positionsMm,proto3" json:"positions_mm,omitempty"` LengthsMm []float64 `protobuf:"fixed64,2,rep,packed,name=lengths_mm,json=lengthsMm,proto3" json:"lengths_mm,omitempty"` IsMoving bool `protobuf:"varint,3,opt,name=is_moving,json=isMoving,proto3" json:"is_moving,omitempty"` // contains filtered or unexported fields }
func (*Status) Descriptor
deprecated
func (*Status) GetIsMoving ¶
func (*Status) GetLengthsMm ¶
func (*Status) GetPositionsMm ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type StopRequest ¶
type StopRequest struct { // Name of a gantry Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Additional arguments to the method Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"` // contains filtered or unexported fields }
func (*StopRequest) Descriptor
deprecated
func (*StopRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopRequest.ProtoReflect.Descriptor instead.
func (*StopRequest) GetExtra ¶
func (x *StopRequest) GetExtra() *structpb.Struct
func (*StopRequest) GetName ¶
func (x *StopRequest) GetName() string
func (*StopRequest) ProtoMessage ¶
func (*StopRequest) ProtoMessage()
func (*StopRequest) ProtoReflect ¶
func (x *StopRequest) ProtoReflect() protoreflect.Message
func (*StopRequest) Reset ¶
func (x *StopRequest) Reset()
func (*StopRequest) String ¶
func (x *StopRequest) String() string
type StopResponse ¶
type StopResponse struct {
// contains filtered or unexported fields
}
func (*StopResponse) Descriptor
deprecated
func (*StopResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopResponse.ProtoReflect.Descriptor instead.
func (*StopResponse) ProtoMessage ¶
func (*StopResponse) ProtoMessage()
func (*StopResponse) ProtoReflect ¶
func (x *StopResponse) ProtoReflect() protoreflect.Message
func (*StopResponse) Reset ¶
func (x *StopResponse) Reset()
func (*StopResponse) String ¶
func (x *StopResponse) String() string
type UnimplementedGantryServiceServer ¶
type UnimplementedGantryServiceServer struct { }
UnimplementedGantryServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGantryServiceServer) GetLengths ¶
func (UnimplementedGantryServiceServer) GetLengths(context.Context, *GetLengthsRequest) (*GetLengthsResponse, error)
func (UnimplementedGantryServiceServer) GetPosition ¶
func (UnimplementedGantryServiceServer) GetPosition(context.Context, *GetPositionRequest) (*GetPositionResponse, error)
func (UnimplementedGantryServiceServer) MoveToPosition ¶
func (UnimplementedGantryServiceServer) MoveToPosition(context.Context, *MoveToPositionRequest) (*MoveToPositionResponse, error)
func (UnimplementedGantryServiceServer) Stop ¶
func (UnimplementedGantryServiceServer) Stop(context.Context, *StopRequest) (*StopResponse, error)
type UnsafeGantryServiceServer ¶
type UnsafeGantryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGantryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GantryServiceServer will result in compilation errors.