Documentation
¶
Index ¶
- Constants
- type Car
- type Client
- type GeneralClient
- func (g GeneralClient) GetLocation() (p location.Point2D, err error)
- func (g *GeneralClient) IRSend(d hardware.IRData) (err error)
- func (g *GeneralClient) IsServiceAvailable() (err error)
- func (g *GeneralClient) LastMovementStatus() (r int)
- func (g GeneralClient) MoveTo(l location.Point2D) (err error)
- func (g *GeneralClient) StopMovement() (err error)
- type GeneralServiceHandler
- func (s *GeneralServiceHandler) GetLocation(nouse int, d *rpcprotocal.Point2D) error
- func (s *GeneralServiceHandler) IRSend(data hardware.IRData, nouse *int) error
- func (s *GeneralServiceHandler) LastMovementStatus(nouse int, rep *int) error
- func (s *GeneralServiceHandler) MoveTo(d rpcprotocal.Point2D, rep *int) error
- func (s *GeneralServiceHandler) StopMoving(int, *int) error
- type Service
Constants ¶
View Source
const ( Succeeded int = iota Failed Moving )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneralClient ¶
type GeneralClient struct {
// contains filtered or unexported fields
}
func NewGeneralClient ¶
func NewGeneralClient(networkType string, netWorkAddr string, serviceName string) *GeneralClient
func (GeneralClient) GetLocation ¶
func (g GeneralClient) GetLocation() (p location.Point2D, err error)
func (*GeneralClient) IsServiceAvailable ¶
func (g *GeneralClient) IsServiceAvailable() (err error)
func (*GeneralClient) LastMovementStatus ¶
func (g *GeneralClient) LastMovementStatus() (r int)
func (*GeneralClient) StopMovement ¶
func (g *GeneralClient) StopMovement() (err error)
type GeneralServiceHandler ¶
type GeneralServiceHandler struct {
// contains filtered or unexported fields
}
func NewGeneralServiceHandler ¶
func NewGeneralServiceHandler(c Car) *GeneralServiceHandler
func (*GeneralServiceHandler) GetLocation ¶
func (s *GeneralServiceHandler) GetLocation(nouse int, d *rpcprotocal.Point2D) error
func (*GeneralServiceHandler) IRSend ¶
func (s *GeneralServiceHandler) IRSend(data hardware.IRData, nouse *int) error
func (*GeneralServiceHandler) LastMovementStatus ¶
func (s *GeneralServiceHandler) LastMovementStatus(nouse int, rep *int) error
func (*GeneralServiceHandler) MoveTo ¶
func (s *GeneralServiceHandler) MoveTo(d rpcprotocal.Point2D, rep *int) error
func (*GeneralServiceHandler) StopMoving ¶
func (s *GeneralServiceHandler) StopMoving(int, *int) error
Click to show internal directories.
Click to hide internal directories.