Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMachineServer(s grpc.ServiceRegistrar, srv MachineServer)
- type Empty
- type MachineClient
- type MachineServer
- type MachineVersionResponse
- func (*MachineVersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MachineVersionResponse) GetVersion() string
- func (*MachineVersionResponse) ProtoMessage()
- func (x *MachineVersionResponse) ProtoReflect() protoreflect.Message
- func (x *MachineVersionResponse) Reset()
- func (x *MachineVersionResponse) String() string
- type UnimplementedMachineServer
- type UnsafeMachineServer
Constants ¶
const (
Machine_MachineVersion_FullMethodName = "/machinepb.machine/MachineVersion"
)
Variables ¶
var File_machine_proto protoreflect.FileDescriptor
var Machine_ServiceDesc = grpc.ServiceDesc{ ServiceName: "machinepb.machine", HandlerType: (*MachineServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "MachineVersion", Handler: _Machine_MachineVersion_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "machine.proto", }
Machine_ServiceDesc is the grpc.ServiceDesc for Machine service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMachineServer ¶
func RegisterMachineServer(s grpc.ServiceRegistrar, srv MachineServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type MachineClient ¶
type MachineClient interface {
MachineVersion(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*MachineVersionResponse, error)
}
MachineClient is the client API for Machine 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 NewMachineClient ¶
func NewMachineClient(cc grpc.ClientConnInterface) MachineClient
type MachineServer ¶
type MachineServer interface { MachineVersion(context.Context, *Empty) (*MachineVersionResponse, error) // contains filtered or unexported methods }
MachineServer is the server API for Machine service. All implementations must embed UnimplementedMachineServer for forward compatibility
type MachineVersionResponse ¶
type MachineVersionResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*MachineVersionResponse) Descriptor
deprecated
func (*MachineVersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MachineVersionResponse.ProtoReflect.Descriptor instead.
func (*MachineVersionResponse) GetVersion ¶
func (x *MachineVersionResponse) GetVersion() string
func (*MachineVersionResponse) ProtoMessage ¶
func (*MachineVersionResponse) ProtoMessage()
func (*MachineVersionResponse) ProtoReflect ¶
func (x *MachineVersionResponse) ProtoReflect() protoreflect.Message
func (*MachineVersionResponse) Reset ¶
func (x *MachineVersionResponse) Reset()
func (*MachineVersionResponse) String ¶
func (x *MachineVersionResponse) String() string
type UnimplementedMachineServer ¶
type UnimplementedMachineServer struct { }
UnimplementedMachineServer must be embedded to have forward compatible implementations.
func (UnimplementedMachineServer) MachineVersion ¶
func (UnimplementedMachineServer) MachineVersion(context.Context, *Empty) (*MachineVersionResponse, error)
type UnsafeMachineServer ¶
type UnsafeMachineServer interface {
// contains filtered or unexported methods
}
UnsafeMachineServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MachineServer will result in compilation errors.