Documentation ¶
Overview ¶
Package telegram is a generated protocol buffer package.
It is generated from these files:
remote_command.proto
It has these top-level messages:
RemoteCommandRequest RemoteRequest
Index ¶
- func RegisterRemoteCommandServer(s *grpc.Server, srv RemoteCommandServer)
- type RemoteCommandClient
- type RemoteCommandRequest
- func (*RemoteCommandRequest) Descriptor() ([]byte, []int)
- func (m *RemoteCommandRequest) GetDescription() string
- func (m *RemoteCommandRequest) GetGroup() int64
- func (m *RemoteCommandRequest) GetName() string
- func (*RemoteCommandRequest) ProtoMessage()
- func (m *RemoteCommandRequest) Reset()
- func (m *RemoteCommandRequest) String() string
- type RemoteCommandServer
- type RemoteCommand_RegisterCommandClient
- type RemoteCommand_RegisterCommandServer
- type RemoteRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRemoteCommandServer ¶
func RegisterRemoteCommandServer(s *grpc.Server, srv RemoteCommandServer)
Types ¶
type RemoteCommandClient ¶
type RemoteCommandClient interface {
RegisterCommand(ctx context.Context, in *RemoteCommandRequest, opts ...grpc.CallOption) (RemoteCommand_RegisterCommandClient, error)
}
func NewRemoteCommandClient ¶
func NewRemoteCommandClient(cc *grpc.ClientConn) RemoteCommandClient
func NewRemoteCommandClientService ¶
func NewRemoteCommandClientService() RemoteCommandClient
type RemoteCommandRequest ¶
type RemoteCommandRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` Group int64 `protobuf:"varint,3,opt,name=group" json:"group,omitempty"` }
func (*RemoteCommandRequest) Descriptor ¶
func (*RemoteCommandRequest) Descriptor() ([]byte, []int)
func (*RemoteCommandRequest) GetDescription ¶
func (m *RemoteCommandRequest) GetDescription() string
func (*RemoteCommandRequest) GetGroup ¶
func (m *RemoteCommandRequest) GetGroup() int64
func (*RemoteCommandRequest) GetName ¶
func (m *RemoteCommandRequest) GetName() string
func (*RemoteCommandRequest) ProtoMessage ¶
func (*RemoteCommandRequest) ProtoMessage()
func (*RemoteCommandRequest) Reset ¶
func (m *RemoteCommandRequest) Reset()
func (*RemoteCommandRequest) String ¶
func (m *RemoteCommandRequest) String() string
type RemoteCommandServer ¶
type RemoteCommandServer interface {
RegisterCommand(*RemoteCommandRequest, RemoteCommand_RegisterCommandServer) error
}
func NewService ¶
func NewService(telegram telegram.Service) RemoteCommandServer
type RemoteCommand_RegisterCommandClient ¶
type RemoteCommand_RegisterCommandClient interface { Recv() (*RemoteRequest, error) grpc.ClientStream }
type RemoteCommand_RegisterCommandServer ¶
type RemoteCommand_RegisterCommandServer interface { Send(*RemoteRequest) error grpc.ServerStream }
type RemoteRequest ¶
type RemoteRequest struct { From string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` }
func (*RemoteRequest) Descriptor ¶
func (*RemoteRequest) Descriptor() ([]byte, []int)
func (*RemoteRequest) GetFrom ¶
func (m *RemoteRequest) GetFrom() string
func (*RemoteRequest) GetMessage ¶
func (m *RemoteRequest) GetMessage() string
func (*RemoteRequest) ProtoMessage ¶
func (*RemoteRequest) ProtoMessage()
func (*RemoteRequest) Reset ¶
func (m *RemoteRequest) Reset()
func (*RemoteRequest) String ¶
func (m *RemoteRequest) String() string
Directories ¶
Path | Synopsis |
---|---|
Package mock_remoteTelegramCommands is a generated GoMock package.
|
Package mock_remoteTelegramCommands is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.