Documentation ¶
Index ¶
- Variables
- func RegisterComServer(s *grpc.Server, srv ComServer)
- type ComClient
- type ComServer
- type Com_HandleCommandsClient
- type Com_HandleCommandsServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetClientID() string
- func (x *Request) GetClientIPAddress() string
- func (x *Request) GetCommand() string
- func (x *Request) GetData() []byte
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetClientID() string
- func (x *Response) GetClientIPAddress() string
- func (x *Response) GetCommand() string
- func (x *Response) GetData() []byte
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type UnimplementedComServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_com_proto protoreflect.FileDescriptor
Functions ¶
func RegisterComServer ¶
Types ¶
type ComClient ¶
type ComClient interface {
HandleCommands(ctx context.Context, opts ...grpc.CallOption) (Com_HandleCommandsClient, error)
}
ComClient is the client API for Com service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewComClient ¶
func NewComClient(cc grpc.ClientConnInterface) ComClient
type ComServer ¶
type ComServer interface {
HandleCommands(Com_HandleCommandsServer) error
}
ComServer is the server API for Com service.
type Request ¶
type Request struct { ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"` ClientIPAddress string `protobuf:"bytes,2,opt,name=ClientIPAddress,proto3" json:"ClientIPAddress,omitempty"` Command string `protobuf:"bytes,3,opt,name=Command,proto3" json:"Command,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetClientID ¶
func (*Request) GetClientIPAddress ¶
func (*Request) GetCommand ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ClientID,omitempty"` ClientIPAddress string `protobuf:"bytes,2,opt,name=ClientIPAddress,proto3" json:"ClientIPAddress,omitempty"` Command string `protobuf:"bytes,3,opt,name=Command,proto3" json:"Command,omitempty"` Data []byte `protobuf:"bytes,4,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetClientID ¶
func (*Response) GetClientIPAddress ¶
func (*Response) GetCommand ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedComServer ¶
type UnimplementedComServer struct { }
UnimplementedComServer can be embedded to have forward compatible implementations.
func (*UnimplementedComServer) HandleCommands ¶
func (*UnimplementedComServer) HandleCommands(Com_HandleCommandsServer) error
Click to show internal directories.
Click to hide internal directories.