device

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 NewServer

func NewServer(c *xgrpc.ServerConfig, d *device.Device) *Server

func (*Server) Connect

func (s *Server) Connect(ctx context.Context, req *pb.ConnectReq) (*pb.ConnectReply, error)

func (*Server) DisConnect

func (*Server) Focus

func (s *Server) Focus(ctx context.Context, req *pb.FocusReq) (*pb.FocusReply, error)

func (*Server) Input

func (s *Server) Input(req pb.Device_InputServer) error

func (*Server) OnReceive

func (s *Server) OnReceive(c *net.IMConn, proto *comet.Proto) error

func (*Server) Output

func (s *Server) Output(req *pb.OutputReq, reply pb.Device_OutputServer) 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 (s *Session) GetChannel() xproto.Channel

func (*Session) GetTarget

func (s *Session) GetTarget() string

func (*Session) SetChannel

func (s *Session) SetChannel(ch xproto.Channel)

func (*Session) SetTarget

func (s *Session) SetTarget(target string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL