Documentation ¶
Index ¶
- Variables
- func RegisterDeviceDefinitionServiceServer(s grpc.ServiceRegistrar, srv DeviceDefinitionServiceServer)
- type DeviceDefinitionServiceClient
- type DeviceDefinitionServiceServer
- type GetDeviceDefinitionRequest
- func (*GetDeviceDefinitionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceDefinitionRequest) GetId() string
- func (*GetDeviceDefinitionRequest) ProtoMessage()
- func (x *GetDeviceDefinitionRequest) ProtoReflect() protoreflect.Message
- func (x *GetDeviceDefinitionRequest) Reset()
- func (x *GetDeviceDefinitionRequest) String() string
- type GetDeviceDefinitionResponse
- func (*GetDeviceDefinitionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceDefinitionResponse) GetDeviceDefinitionId() string
- func (x *GetDeviceDefinitionResponse) GetModel() string
- func (x *GetDeviceDefinitionResponse) GetYear() int32
- func (*GetDeviceDefinitionResponse) ProtoMessage()
- func (x *GetDeviceDefinitionResponse) ProtoReflect() protoreflect.Message
- func (x *GetDeviceDefinitionResponse) Reset()
- func (x *GetDeviceDefinitionResponse) String() string
- type UnimplementedDeviceDefinitionServiceServer
- type UnsafeDeviceDefinitionServiceServer
Constants ¶
This section is empty.
Variables ¶
var DeviceDefinitionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.DeviceDefinitionService", HandlerType: (*DeviceDefinitionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDeviceDefinitionById", Handler: _DeviceDefinitionService_GetDeviceDefinitionById_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/grpc/device_definition.proto", }
DeviceDefinitionService_ServiceDesc is the grpc.ServiceDesc for DeviceDefinitionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_grpc_device_definition_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDeviceDefinitionServiceServer ¶
func RegisterDeviceDefinitionServiceServer(s grpc.ServiceRegistrar, srv DeviceDefinitionServiceServer)
Types ¶
type DeviceDefinitionServiceClient ¶
type DeviceDefinitionServiceClient interface {
GetDeviceDefinitionById(ctx context.Context, in *GetDeviceDefinitionRequest, opts ...grpc.CallOption) (*GetDeviceDefinitionResponse, error)
}
DeviceDefinitionServiceClient is the client API for DeviceDefinitionService 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 NewDeviceDefinitionServiceClient ¶
func NewDeviceDefinitionServiceClient(cc grpc.ClientConnInterface) DeviceDefinitionServiceClient
type DeviceDefinitionServiceServer ¶
type DeviceDefinitionServiceServer interface { GetDeviceDefinitionById(context.Context, *GetDeviceDefinitionRequest) (*GetDeviceDefinitionResponse, error) // contains filtered or unexported methods }
DeviceDefinitionServiceServer is the server API for DeviceDefinitionService service. All implementations must embed UnimplementedDeviceDefinitionServiceServer for forward compatibility
type GetDeviceDefinitionRequest ¶
type GetDeviceDefinitionRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceDefinitionRequest) Descriptor
deprecated
func (*GetDeviceDefinitionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceDefinitionRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceDefinitionRequest) GetId ¶
func (x *GetDeviceDefinitionRequest) GetId() string
func (*GetDeviceDefinitionRequest) ProtoMessage ¶
func (*GetDeviceDefinitionRequest) ProtoMessage()
func (*GetDeviceDefinitionRequest) ProtoReflect ¶
func (x *GetDeviceDefinitionRequest) ProtoReflect() protoreflect.Message
func (*GetDeviceDefinitionRequest) Reset ¶
func (x *GetDeviceDefinitionRequest) Reset()
func (*GetDeviceDefinitionRequest) String ¶
func (x *GetDeviceDefinitionRequest) String() string
type GetDeviceDefinitionResponse ¶
type GetDeviceDefinitionResponse struct { DeviceDefinitionId string `protobuf:"bytes,1,opt,name=device_definition_id,json=deviceDefinitionId,proto3" json:"device_definition_id,omitempty"` Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` Year int32 `protobuf:"varint,3,opt,name=year,proto3" json:"year,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceDefinitionResponse) Descriptor
deprecated
func (*GetDeviceDefinitionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceDefinitionResponse.ProtoReflect.Descriptor instead.
func (*GetDeviceDefinitionResponse) GetDeviceDefinitionId ¶
func (x *GetDeviceDefinitionResponse) GetDeviceDefinitionId() string
func (*GetDeviceDefinitionResponse) GetModel ¶
func (x *GetDeviceDefinitionResponse) GetModel() string
func (*GetDeviceDefinitionResponse) GetYear ¶
func (x *GetDeviceDefinitionResponse) GetYear() int32
func (*GetDeviceDefinitionResponse) ProtoMessage ¶
func (*GetDeviceDefinitionResponse) ProtoMessage()
func (*GetDeviceDefinitionResponse) ProtoReflect ¶
func (x *GetDeviceDefinitionResponse) ProtoReflect() protoreflect.Message
func (*GetDeviceDefinitionResponse) Reset ¶
func (x *GetDeviceDefinitionResponse) Reset()
func (*GetDeviceDefinitionResponse) String ¶
func (x *GetDeviceDefinitionResponse) String() string
type UnimplementedDeviceDefinitionServiceServer ¶
type UnimplementedDeviceDefinitionServiceServer struct { }
UnimplementedDeviceDefinitionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDeviceDefinitionServiceServer) GetDeviceDefinitionById ¶
func (UnimplementedDeviceDefinitionServiceServer) GetDeviceDefinitionById(context.Context, *GetDeviceDefinitionRequest) (*GetDeviceDefinitionResponse, error)
type UnsafeDeviceDefinitionServiceServer ¶
type UnsafeDeviceDefinitionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDeviceDefinitionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeviceDefinitionServiceServer will result in compilation errors.