Documentation
¶
Index ¶
- Variables
- func RegisterDeviceServer(s grpc.ServiceRegistrar, srv DeviceServer)
- type CreateDeviceRequest
- type CreateDeviceResponse
- func (*CreateDeviceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDeviceResponse) GetPtr() uint64
- func (*CreateDeviceResponse) ProtoMessage()
- func (x *CreateDeviceResponse) ProtoReflect() protoreflect.Message
- func (x *CreateDeviceResponse) Reset()
- func (x *CreateDeviceResponse) String() string
- type DeviceClient
- type DevicePrintRequest
- type DevicePrintResponse
- type DeviceServer
- type DeviceSetValueRequest
- func (*DeviceSetValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceSetValueRequest) GetPtr() uint64
- func (x *DeviceSetValueRequest) GetValue() int32
- func (*DeviceSetValueRequest) ProtoMessage()
- func (x *DeviceSetValueRequest) ProtoReflect() protoreflect.Message
- func (x *DeviceSetValueRequest) Reset()
- func (x *DeviceSetValueRequest) String() string
- type DeviceSetValueResponse
- type DeviceValueRequest
- type DeviceValueResponse
- func (*DeviceValueResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceValueResponse) GetValue() int32
- func (*DeviceValueResponse) ProtoMessage()
- func (x *DeviceValueResponse) ProtoReflect() protoreflect.Message
- func (x *DeviceValueResponse) Reset()
- func (x *DeviceValueResponse) String() string
- type FreeDeviceRequest
- type FreeDeviceResponse
- type GetDeviceRequest
- func (*GetDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDeviceRequest) GetPtr() uint64
- func (x *GetDeviceRequest) GetUseJson() bool
- func (*GetDeviceRequest) ProtoMessage()
- func (x *GetDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *GetDeviceRequest) Reset()
- func (x *GetDeviceRequest) String() string
- type GetDeviceResponse
- type UnimplementedDeviceServer
- func (UnimplementedDeviceServer) CreateDevice(context.Context, *CreateDeviceRequest) (*CreateDeviceResponse, error)
- func (UnimplementedDeviceServer) DevicePrint(context.Context, *DevicePrintRequest) (*DevicePrintResponse, error)
- func (UnimplementedDeviceServer) DeviceSetValue(context.Context, *DeviceSetValueRequest) (*DeviceSetValueResponse, error)
- func (UnimplementedDeviceServer) DeviceValue(context.Context, *DeviceValueRequest) (*DeviceValueResponse, error)
- func (UnimplementedDeviceServer) FreeDevice(context.Context, *FreeDeviceRequest) (*FreeDeviceResponse, error)
- func (UnimplementedDeviceServer) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error)
- type UnsafeDeviceServer
Constants ¶
This section is empty.
Variables ¶
var Device_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Device", HandlerType: (*DeviceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateDevice", Handler: _Device_CreateDevice_Handler, }, { MethodName: "FreeDevice", Handler: _Device_FreeDevice_Handler, }, { MethodName: "GetDevice", Handler: _Device_GetDevice_Handler, }, { MethodName: "DevicePrint", Handler: _Device_DevicePrint_Handler, }, { MethodName: "DeviceValue", Handler: _Device_DeviceValue_Handler, }, { MethodName: "DeviceSetValue", Handler: _Device_DeviceSetValue_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "device.proto", }
Device_ServiceDesc is the grpc.ServiceDesc for Device service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_device_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDeviceServer ¶
func RegisterDeviceServer(s grpc.ServiceRegistrar, srv DeviceServer)
Types ¶
type CreateDeviceRequest ¶
type CreateDeviceRequest struct {
// contains filtered or unexported fields
}
func (*CreateDeviceRequest) Descriptor
deprecated
func (*CreateDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceRequest.ProtoReflect.Descriptor instead.
func (*CreateDeviceRequest) ProtoMessage ¶
func (*CreateDeviceRequest) ProtoMessage()
func (*CreateDeviceRequest) ProtoReflect ¶
func (x *CreateDeviceRequest) ProtoReflect() protoreflect.Message
func (*CreateDeviceRequest) Reset ¶
func (x *CreateDeviceRequest) Reset()
func (*CreateDeviceRequest) String ¶
func (x *CreateDeviceRequest) String() string
type CreateDeviceResponse ¶
type CreateDeviceResponse struct { Ptr uint64 `protobuf:"varint,1,opt,name=ptr,proto3" json:"ptr,omitempty"` // contains filtered or unexported fields }
func (*CreateDeviceResponse) Descriptor
deprecated
func (*CreateDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateDeviceResponse.ProtoReflect.Descriptor instead.
func (*CreateDeviceResponse) GetPtr ¶
func (x *CreateDeviceResponse) GetPtr() uint64
func (*CreateDeviceResponse) ProtoMessage ¶
func (*CreateDeviceResponse) ProtoMessage()
func (*CreateDeviceResponse) ProtoReflect ¶
func (x *CreateDeviceResponse) ProtoReflect() protoreflect.Message
func (*CreateDeviceResponse) Reset ¶
func (x *CreateDeviceResponse) Reset()
func (*CreateDeviceResponse) String ¶
func (x *CreateDeviceResponse) String() string
type DeviceClient ¶
type DeviceClient interface { CreateDevice(ctx context.Context, in *CreateDeviceRequest, opts ...grpc.CallOption) (*CreateDeviceResponse, error) FreeDevice(ctx context.Context, in *FreeDeviceRequest, opts ...grpc.CallOption) (*FreeDeviceResponse, error) GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*GetDeviceResponse, error) DevicePrint(ctx context.Context, in *DevicePrintRequest, opts ...grpc.CallOption) (*DevicePrintResponse, error) DeviceValue(ctx context.Context, in *DeviceValueRequest, opts ...grpc.CallOption) (*DeviceValueResponse, error) DeviceSetValue(ctx context.Context, in *DeviceSetValueRequest, opts ...grpc.CallOption) (*DeviceSetValueResponse, error) }
DeviceClient is the client API for Device 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 NewDeviceClient ¶
func NewDeviceClient(cc grpc.ClientConnInterface) DeviceClient
type DevicePrintRequest ¶
type DevicePrintRequest struct { Ptr uint64 `protobuf:"varint,1,opt,name=ptr,proto3" json:"ptr,omitempty"` // contains filtered or unexported fields }
func (*DevicePrintRequest) Descriptor
deprecated
func (*DevicePrintRequest) Descriptor() ([]byte, []int)
Deprecated: Use DevicePrintRequest.ProtoReflect.Descriptor instead.
func (*DevicePrintRequest) GetPtr ¶
func (x *DevicePrintRequest) GetPtr() uint64
func (*DevicePrintRequest) ProtoMessage ¶
func (*DevicePrintRequest) ProtoMessage()
func (*DevicePrintRequest) ProtoReflect ¶
func (x *DevicePrintRequest) ProtoReflect() protoreflect.Message
func (*DevicePrintRequest) Reset ¶
func (x *DevicePrintRequest) Reset()
func (*DevicePrintRequest) String ¶
func (x *DevicePrintRequest) String() string
type DevicePrintResponse ¶
type DevicePrintResponse struct {
// contains filtered or unexported fields
}
func (*DevicePrintResponse) Descriptor
deprecated
func (*DevicePrintResponse) Descriptor() ([]byte, []int)
Deprecated: Use DevicePrintResponse.ProtoReflect.Descriptor instead.
func (*DevicePrintResponse) ProtoMessage ¶
func (*DevicePrintResponse) ProtoMessage()
func (*DevicePrintResponse) ProtoReflect ¶
func (x *DevicePrintResponse) ProtoReflect() protoreflect.Message
func (*DevicePrintResponse) Reset ¶
func (x *DevicePrintResponse) Reset()
func (*DevicePrintResponse) String ¶
func (x *DevicePrintResponse) String() string
type DeviceServer ¶
type DeviceServer interface { CreateDevice(context.Context, *CreateDeviceRequest) (*CreateDeviceResponse, error) FreeDevice(context.Context, *FreeDeviceRequest) (*FreeDeviceResponse, error) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error) DevicePrint(context.Context, *DevicePrintRequest) (*DevicePrintResponse, error) DeviceValue(context.Context, *DeviceValueRequest) (*DeviceValueResponse, error) DeviceSetValue(context.Context, *DeviceSetValueRequest) (*DeviceSetValueResponse, error) // contains filtered or unexported methods }
DeviceServer is the server API for Device service. All implementations must embed UnimplementedDeviceServer for forward compatibility
type DeviceSetValueRequest ¶
type DeviceSetValueRequest struct { Ptr uint64 `protobuf:"varint,1,opt,name=ptr,proto3" json:"ptr,omitempty"` Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DeviceSetValueRequest) Descriptor
deprecated
func (*DeviceSetValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceSetValueRequest.ProtoReflect.Descriptor instead.
func (*DeviceSetValueRequest) GetPtr ¶
func (x *DeviceSetValueRequest) GetPtr() uint64
func (*DeviceSetValueRequest) GetValue ¶
func (x *DeviceSetValueRequest) GetValue() int32
func (*DeviceSetValueRequest) ProtoMessage ¶
func (*DeviceSetValueRequest) ProtoMessage()
func (*DeviceSetValueRequest) ProtoReflect ¶
func (x *DeviceSetValueRequest) ProtoReflect() protoreflect.Message
func (*DeviceSetValueRequest) Reset ¶
func (x *DeviceSetValueRequest) Reset()
func (*DeviceSetValueRequest) String ¶
func (x *DeviceSetValueRequest) String() string
type DeviceSetValueResponse ¶
type DeviceSetValueResponse struct {
// contains filtered or unexported fields
}
func (*DeviceSetValueResponse) Descriptor
deprecated
func (*DeviceSetValueResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeviceSetValueResponse.ProtoReflect.Descriptor instead.
func (*DeviceSetValueResponse) ProtoMessage ¶
func (*DeviceSetValueResponse) ProtoMessage()
func (*DeviceSetValueResponse) ProtoReflect ¶
func (x *DeviceSetValueResponse) ProtoReflect() protoreflect.Message
func (*DeviceSetValueResponse) Reset ¶
func (x *DeviceSetValueResponse) Reset()
func (*DeviceSetValueResponse) String ¶
func (x *DeviceSetValueResponse) String() string
type DeviceValueRequest ¶
type DeviceValueRequest struct { Ptr uint64 `protobuf:"varint,1,opt,name=ptr,proto3" json:"ptr,omitempty"` // contains filtered or unexported fields }
func (*DeviceValueRequest) Descriptor
deprecated
func (*DeviceValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceValueRequest.ProtoReflect.Descriptor instead.
func (*DeviceValueRequest) GetPtr ¶
func (x *DeviceValueRequest) GetPtr() uint64
func (*DeviceValueRequest) ProtoMessage ¶
func (*DeviceValueRequest) ProtoMessage()
func (*DeviceValueRequest) ProtoReflect ¶
func (x *DeviceValueRequest) ProtoReflect() protoreflect.Message
func (*DeviceValueRequest) Reset ¶
func (x *DeviceValueRequest) Reset()
func (*DeviceValueRequest) String ¶
func (x *DeviceValueRequest) String() string
type DeviceValueResponse ¶
type DeviceValueResponse struct { Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DeviceValueResponse) Descriptor
deprecated
func (*DeviceValueResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeviceValueResponse.ProtoReflect.Descriptor instead.
func (*DeviceValueResponse) GetValue ¶
func (x *DeviceValueResponse) GetValue() int32
func (*DeviceValueResponse) ProtoMessage ¶
func (*DeviceValueResponse) ProtoMessage()
func (*DeviceValueResponse) ProtoReflect ¶
func (x *DeviceValueResponse) ProtoReflect() protoreflect.Message
func (*DeviceValueResponse) Reset ¶
func (x *DeviceValueResponse) Reset()
func (*DeviceValueResponse) String ¶
func (x *DeviceValueResponse) String() string
type FreeDeviceRequest ¶
type FreeDeviceRequest struct { Ptr uint64 `protobuf:"varint,1,opt,name=ptr,proto3" json:"ptr,omitempty"` // contains filtered or unexported fields }
func (*FreeDeviceRequest) Descriptor
deprecated
func (*FreeDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use FreeDeviceRequest.ProtoReflect.Descriptor instead.
func (*FreeDeviceRequest) GetPtr ¶
func (x *FreeDeviceRequest) GetPtr() uint64
func (*FreeDeviceRequest) ProtoMessage ¶
func (*FreeDeviceRequest) ProtoMessage()
func (*FreeDeviceRequest) ProtoReflect ¶
func (x *FreeDeviceRequest) ProtoReflect() protoreflect.Message
func (*FreeDeviceRequest) Reset ¶
func (x *FreeDeviceRequest) Reset()
func (*FreeDeviceRequest) String ¶
func (x *FreeDeviceRequest) String() string
type FreeDeviceResponse ¶
type FreeDeviceResponse struct {
// contains filtered or unexported fields
}
func (*FreeDeviceResponse) Descriptor
deprecated
func (*FreeDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use FreeDeviceResponse.ProtoReflect.Descriptor instead.
func (*FreeDeviceResponse) ProtoMessage ¶
func (*FreeDeviceResponse) ProtoMessage()
func (*FreeDeviceResponse) ProtoReflect ¶
func (x *FreeDeviceResponse) ProtoReflect() protoreflect.Message
func (*FreeDeviceResponse) Reset ¶
func (x *FreeDeviceResponse) Reset()
func (*FreeDeviceResponse) String ¶
func (x *FreeDeviceResponse) String() string
type GetDeviceRequest ¶
type GetDeviceRequest struct { Ptr uint64 `protobuf:"varint,1,opt,name=ptr,proto3" json:"ptr,omitempty"` UseJson bool `protobuf:"varint,2,opt,name=useJson,proto3" json:"useJson,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceRequest) Descriptor
deprecated
func (*GetDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceRequest.ProtoReflect.Descriptor instead.
func (*GetDeviceRequest) GetPtr ¶
func (x *GetDeviceRequest) GetPtr() uint64
func (*GetDeviceRequest) GetUseJson ¶
func (x *GetDeviceRequest) GetUseJson() bool
func (*GetDeviceRequest) ProtoMessage ¶
func (*GetDeviceRequest) ProtoMessage()
func (*GetDeviceRequest) ProtoReflect ¶
func (x *GetDeviceRequest) ProtoReflect() protoreflect.Message
func (*GetDeviceRequest) Reset ¶
func (x *GetDeviceRequest) Reset()
func (*GetDeviceRequest) String ¶
func (x *GetDeviceRequest) String() string
type GetDeviceResponse ¶
type GetDeviceResponse struct { Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` // contains filtered or unexported fields }
func (*GetDeviceResponse) Descriptor
deprecated
func (*GetDeviceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDeviceResponse.ProtoReflect.Descriptor instead.
func (*GetDeviceResponse) GetEncoded ¶
func (x *GetDeviceResponse) GetEncoded() []byte
func (*GetDeviceResponse) ProtoMessage ¶
func (*GetDeviceResponse) ProtoMessage()
func (*GetDeviceResponse) ProtoReflect ¶
func (x *GetDeviceResponse) ProtoReflect() protoreflect.Message
func (*GetDeviceResponse) Reset ¶
func (x *GetDeviceResponse) Reset()
func (*GetDeviceResponse) String ¶
func (x *GetDeviceResponse) String() string
type UnimplementedDeviceServer ¶
type UnimplementedDeviceServer struct { }
UnimplementedDeviceServer must be embedded to have forward compatible implementations.
func (UnimplementedDeviceServer) CreateDevice ¶
func (UnimplementedDeviceServer) CreateDevice(context.Context, *CreateDeviceRequest) (*CreateDeviceResponse, error)
func (UnimplementedDeviceServer) DevicePrint ¶
func (UnimplementedDeviceServer) DevicePrint(context.Context, *DevicePrintRequest) (*DevicePrintResponse, error)
func (UnimplementedDeviceServer) DeviceSetValue ¶
func (UnimplementedDeviceServer) DeviceSetValue(context.Context, *DeviceSetValueRequest) (*DeviceSetValueResponse, error)
func (UnimplementedDeviceServer) DeviceValue ¶
func (UnimplementedDeviceServer) DeviceValue(context.Context, *DeviceValueRequest) (*DeviceValueResponse, error)
func (UnimplementedDeviceServer) FreeDevice ¶
func (UnimplementedDeviceServer) FreeDevice(context.Context, *FreeDeviceRequest) (*FreeDeviceResponse, error)
func (UnimplementedDeviceServer) GetDevice ¶
func (UnimplementedDeviceServer) GetDevice(context.Context, *GetDeviceRequest) (*GetDeviceResponse, error)
type UnsafeDeviceServer ¶
type UnsafeDeviceServer interface {
// contains filtered or unexported methods
}
UnsafeDeviceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeviceServer will result in compilation errors.