grpc

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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.

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 (*GetDeviceDefinitionRequest) ProtoMessage

func (*GetDeviceDefinitionRequest) ProtoMessage()

func (*GetDeviceDefinitionRequest) ProtoReflect

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 (*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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL