Documentation
¶
Index ¶
Constants ¶
const (
GenericService_DoCommand_FullMethodName = "/viam.service.generic.v1.GenericService/DoCommand"
)
Variables ¶
var GenericService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "viam.service.generic.v1.GenericService", HandlerType: (*GenericServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DoCommand", Handler: _GenericService_DoCommand_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service/generic/v1/generic.proto", }
GenericService_ServiceDesc is the grpc.ServiceDesc for GenericService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGenericServiceServer ¶
func RegisterGenericServiceServer(s grpc.ServiceRegistrar, srv GenericServiceServer)
Types ¶
type GenericServiceClient ¶
type GenericServiceClient interface { // DoCommand sends/receives arbitrary commands DoCommand(ctx context.Context, in *v1.DoCommandRequest, opts ...grpc.CallOption) (*v1.DoCommandResponse, error) }
GenericServiceClient is the client API for GenericService 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.
GenericService services all generic services associated with a robot
func NewGenericServiceClient ¶
func NewGenericServiceClient(cc grpc.ClientConnInterface) GenericServiceClient
type GenericServiceServer ¶
type GenericServiceServer interface { // DoCommand sends/receives arbitrary commands DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error) }
GenericServiceServer is the server API for GenericService service. All implementations should embed UnimplementedGenericServiceServer for forward compatibility.
GenericService services all generic services associated with a robot
type UnimplementedGenericServiceServer ¶
type UnimplementedGenericServiceServer struct{}
UnimplementedGenericServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedGenericServiceServer) DoCommand ¶
func (UnimplementedGenericServiceServer) DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error)
type UnsafeGenericServiceServer ¶
type UnsafeGenericServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGenericServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GenericServiceServer will result in compilation errors.
Source Files
¶
- generic_grpc.pb.go