Documentation ¶
Index ¶
- func RegisterMessageServer(s *grpc.Server, srv MessageServer)
- type KeyboardInput
- func (*KeyboardInput) Descriptor() ([]byte, []int)
- func (m *KeyboardInput) GetKeycode() int32
- func (m *KeyboardInput) GetType() int32
- func (*KeyboardInput) ProtoMessage()
- func (m *KeyboardInput) Reset()
- func (m *KeyboardInput) String() string
- func (m *KeyboardInput) XXX_DiscardUnknown()
- func (m *KeyboardInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyboardInput) XXX_Merge(src proto.Message)
- func (m *KeyboardInput) XXX_Size() int
- func (m *KeyboardInput) XXX_Unmarshal(b []byte) error
- type MessageClient
- type MessageServer
- type Message_StreamKeyboardClient
- type Message_StreamKeyboardServer
- type Message_StreamMouseClient
- type Message_StreamMouseServer
- type MouseInput
- func (*MouseInput) Descriptor() ([]byte, []int)
- func (m *MouseInput) GetButtonNum() int32
- func (m *MouseInput) GetType() int32
- func (m *MouseInput) GetX() int32
- func (m *MouseInput) GetY() int32
- func (*MouseInput) ProtoMessage()
- func (m *MouseInput) Reset()
- func (m *MouseInput) String() string
- func (m *MouseInput) XXX_DiscardUnknown()
- func (m *MouseInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MouseInput) XXX_Merge(src proto.Message)
- func (m *MouseInput) XXX_Size() int
- func (m *MouseInput) XXX_Unmarshal(b []byte) error
- type RegisterStream
- func (*RegisterStream) Descriptor() ([]byte, []int)
- func (m *RegisterStream) GetClientHostname() string
- func (*RegisterStream) ProtoMessage()
- func (m *RegisterStream) Reset()
- func (m *RegisterStream) String() string
- func (m *RegisterStream) XXX_DiscardUnknown()
- func (m *RegisterStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterStream) XXX_Merge(src proto.Message)
- func (m *RegisterStream) XXX_Size() int
- func (m *RegisterStream) XXX_Unmarshal(b []byte) error
- type UnimplementedMessageServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMessageServer ¶
func RegisterMessageServer(s *grpc.Server, srv MessageServer)
Types ¶
type KeyboardInput ¶
type KeyboardInput struct { Keycode int32 `protobuf:"varint,1,opt,name=keycode,proto3" json:"keycode,omitempty"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyboardInput) Descriptor ¶
func (*KeyboardInput) Descriptor() ([]byte, []int)
func (*KeyboardInput) GetKeycode ¶
func (m *KeyboardInput) GetKeycode() int32
func (*KeyboardInput) GetType ¶
func (m *KeyboardInput) GetType() int32
func (*KeyboardInput) ProtoMessage ¶
func (*KeyboardInput) ProtoMessage()
func (*KeyboardInput) Reset ¶
func (m *KeyboardInput) Reset()
func (*KeyboardInput) String ¶
func (m *KeyboardInput) String() string
func (*KeyboardInput) XXX_DiscardUnknown ¶
func (m *KeyboardInput) XXX_DiscardUnknown()
func (*KeyboardInput) XXX_Marshal ¶
func (m *KeyboardInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyboardInput) XXX_Merge ¶
func (m *KeyboardInput) XXX_Merge(src proto.Message)
func (*KeyboardInput) XXX_Size ¶
func (m *KeyboardInput) XXX_Size() int
func (*KeyboardInput) XXX_Unmarshal ¶
func (m *KeyboardInput) XXX_Unmarshal(b []byte) error
type MessageClient ¶
type MessageClient interface { StreamMouse(ctx context.Context, in *RegisterStream, opts ...grpc.CallOption) (Message_StreamMouseClient, error) StreamKeyboard(ctx context.Context, in *RegisterStream, opts ...grpc.CallOption) (Message_StreamKeyboardClient, error) }
MessageClient is the client API for Message service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMessageClient ¶
func NewMessageClient(cc grpc.ClientConnInterface) MessageClient
type MessageServer ¶
type MessageServer interface { StreamMouse(*RegisterStream, Message_StreamMouseServer) error StreamKeyboard(*RegisterStream, Message_StreamKeyboardServer) error }
MessageServer is the server API for Message service.
type Message_StreamKeyboardClient ¶
type Message_StreamKeyboardClient interface { Recv() (*KeyboardInput, error) grpc.ClientStream }
type Message_StreamKeyboardServer ¶
type Message_StreamKeyboardServer interface { Send(*KeyboardInput) error grpc.ServerStream }
type Message_StreamMouseClient ¶
type Message_StreamMouseClient interface { Recv() (*MouseInput, error) grpc.ClientStream }
type Message_StreamMouseServer ¶
type Message_StreamMouseServer interface { Send(*MouseInput) error grpc.ServerStream }
type MouseInput ¶
type MouseInput struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` ButtonNum int32 `protobuf:"varint,3,opt,name=buttonNum,proto3" json:"buttonNum,omitempty"` Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MouseInput) Descriptor ¶
func (*MouseInput) Descriptor() ([]byte, []int)
func (*MouseInput) GetButtonNum ¶
func (m *MouseInput) GetButtonNum() int32
func (*MouseInput) GetType ¶
func (m *MouseInput) GetType() int32
func (*MouseInput) GetX ¶
func (m *MouseInput) GetX() int32
func (*MouseInput) GetY ¶
func (m *MouseInput) GetY() int32
func (*MouseInput) ProtoMessage ¶
func (*MouseInput) ProtoMessage()
func (*MouseInput) Reset ¶
func (m *MouseInput) Reset()
func (*MouseInput) String ¶
func (m *MouseInput) String() string
func (*MouseInput) XXX_DiscardUnknown ¶
func (m *MouseInput) XXX_DiscardUnknown()
func (*MouseInput) XXX_Marshal ¶
func (m *MouseInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MouseInput) XXX_Merge ¶
func (m *MouseInput) XXX_Merge(src proto.Message)
func (*MouseInput) XXX_Size ¶
func (m *MouseInput) XXX_Size() int
func (*MouseInput) XXX_Unmarshal ¶
func (m *MouseInput) XXX_Unmarshal(b []byte) error
type RegisterStream ¶
type RegisterStream struct { ClientHostname string `protobuf:"bytes,1,opt,name=clientHostname,proto3" json:"clientHostname,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterStream) Descriptor ¶
func (*RegisterStream) Descriptor() ([]byte, []int)
func (*RegisterStream) GetClientHostname ¶
func (m *RegisterStream) GetClientHostname() string
func (*RegisterStream) ProtoMessage ¶
func (*RegisterStream) ProtoMessage()
func (*RegisterStream) Reset ¶
func (m *RegisterStream) Reset()
func (*RegisterStream) String ¶
func (m *RegisterStream) String() string
func (*RegisterStream) XXX_DiscardUnknown ¶
func (m *RegisterStream) XXX_DiscardUnknown()
func (*RegisterStream) XXX_Marshal ¶
func (m *RegisterStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterStream) XXX_Merge ¶
func (m *RegisterStream) XXX_Merge(src proto.Message)
func (*RegisterStream) XXX_Size ¶
func (m *RegisterStream) XXX_Size() int
func (*RegisterStream) XXX_Unmarshal ¶
func (m *RegisterStream) XXX_Unmarshal(b []byte) error
type UnimplementedMessageServer ¶
type UnimplementedMessageServer struct { }
UnimplementedMessageServer can be embedded to have forward compatible implementations.
func (*UnimplementedMessageServer) StreamKeyboard ¶
func (*UnimplementedMessageServer) StreamKeyboard(req *RegisterStream, srv Message_StreamKeyboardServer) error
func (*UnimplementedMessageServer) StreamMouse ¶
func (*UnimplementedMessageServer) StreamMouse(req *RegisterStream, srv Message_StreamMouseServer) error
Click to show internal directories.
Click to hide internal directories.