Documentation ¶
Index ¶
- Variables
- type CmdRequest
- type CmdResponse
- func (*CmdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CmdResponse) GetMsg() string
- func (x *CmdResponse) GetPayload() string
- func (x *CmdResponse) GetSuccess() bool
- func (*CmdResponse) ProtoMessage()
- func (x *CmdResponse) ProtoReflect() protoreflect.Message
- func (x *CmdResponse) Reset()
- func (x *CmdResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_gcnet_proto_command_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CmdRequest ¶
type CmdRequest struct { Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"` Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
The request message
func (*CmdRequest) Descriptor
deprecated
func (*CmdRequest) Descriptor() ([]byte, []int)
Deprecated: Use CmdRequest.ProtoReflect.Descriptor instead.
func (*CmdRequest) GetCmd ¶
func (x *CmdRequest) GetCmd() string
func (*CmdRequest) GetPayload ¶
func (x *CmdRequest) GetPayload() string
func (*CmdRequest) ProtoMessage ¶
func (*CmdRequest) ProtoMessage()
func (*CmdRequest) ProtoReflect ¶
func (x *CmdRequest) ProtoReflect() protoreflect.Message
func (*CmdRequest) Reset ¶
func (x *CmdRequest) Reset()
func (*CmdRequest) String ¶
func (x *CmdRequest) String() string
type CmdResponse ¶
type CmdResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
The response message
func (*CmdResponse) Descriptor
deprecated
func (*CmdResponse) Descriptor() ([]byte, []int)
Deprecated: Use CmdResponse.ProtoReflect.Descriptor instead.
func (*CmdResponse) GetMsg ¶
func (x *CmdResponse) GetMsg() string
func (*CmdResponse) GetPayload ¶
func (x *CmdResponse) GetPayload() string
func (*CmdResponse) GetSuccess ¶
func (x *CmdResponse) GetSuccess() bool
func (*CmdResponse) ProtoMessage ¶
func (*CmdResponse) ProtoMessage()
func (*CmdResponse) ProtoReflect ¶
func (x *CmdResponse) ProtoReflect() protoreflect.Message
func (*CmdResponse) Reset ¶
func (x *CmdResponse) Reset()
func (*CmdResponse) String ¶
func (x *CmdResponse) String() string
Click to show internal directories.
Click to hide internal directories.