Documentation
¶
Index ¶
- type Server
- func (s *Server) Connect(ctx context.Context, req *pb.ConnectReq) (*pb.ConnectReply, error)
- func (s *Server) DisConnect(context.Context, *pb.DisConnectReq) (*pb.DisConnectReply, error)
- func (s *Server) Focus(ctx context.Context, req *pb.FocusReq) (*pb.FocusReply, error)
- func (s *Server) Input(req pb.Device_InputServer) error
- func (s *Server) OnReceive(c *net.IMConn, proto *comet.Proto) error
- func (s *Server) Output(req *pb.OutputReq, reply pb.Device_OutputServer) error
- func (s *Server) ReConnect(ctx context.Context, req *pb.ReConnectReq) (*pb.ReConnectReply, error)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
pb.UnimplementedDeviceServer
*xgrpc.Server
// contains filtered or unexported fields
}
func (*Server) Connect ¶
func (s *Server) Connect(ctx context.Context, req *pb.ConnectReq) (*pb.ConnectReply, error)
func (*Server) DisConnect ¶
func (s *Server) DisConnect(context.Context, *pb.DisConnectReq) (*pb.DisConnectReply, error)
func (*Server) ReConnect ¶
func (s *Server) ReConnect(ctx context.Context, req *pb.ReConnectReq) (*pb.ReConnectReply, error)
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) GetChannel ¶
func (*Session) SetChannel ¶
Click to show internal directories.
Click to hide internal directories.