Versions in this module Expand all Collapse all v0 v0.1.0 Oct 16, 2018 Changes in this version + func RegisterInterfaceService(server *rpc.Server, impl Interface) error + func RegisterUserInterfaceService(server *rpc.Server, impl UserInterface) error + type AdminInterface interface + ClearDisplay func() (err error) + PrintText func(x, y uint, color Color, text string) (err error) + SetLED func(led LED, r, g, b uint8) (err error) + type Color string + const Background + const Foreground + type Dummy struct + func (d *Dummy) ClearDisplay() error + func (d *Dummy) Close() error + func (d *Dummy) DUT() error + func (d *Dummy) GetCurrent() (int, error) + func (d *Dummy) GetCurrentRecord() ([]int, error) + func (d *Dummy) HDMI(on bool) (err error) + func (d *Dummy) PowerTick(duration time.Duration) error + func (d *Dummy) PrintText(x, y uint, color Color, text string) error + func (d *Dummy) SetDyper(dyper Dyper, on bool) error + func (d *Dummy) SetLED(led LED, r, g, b uint8) error + func (d *Dummy) StartCurrentRecord(samples int, interval time.Duration) error + func (d *Dummy) StopCurrentRecord() error + func (d *Dummy) TS() error + type Dyper string + const DYPER1 + const DYPER2 + type Interface interface + type InterfaceClearDisplayRequest struct + type InterfaceClearDisplayResponse struct + type InterfaceClient struct + func DialInterfaceClient(addr string) (*InterfaceClient, error) + func NewInterfaceClient(client *rpc.Client) *InterfaceClient + func (_c *InterfaceClient) ClearDisplay() (err error) + func (_c *InterfaceClient) Close() error + func (_c *InterfaceClient) DUT() (err error) + func (_c *InterfaceClient) GetCurrent() (value int, err error) + func (_c *InterfaceClient) GetCurrentRecord() (samples []int, err error) + func (_c *InterfaceClient) HDMI(on bool) (err error) + func (_c *InterfaceClient) PowerTick(d time.Duration) (err error) + func (_c *InterfaceClient) PrintText(x, y uint, color Color, text string) (err error) + func (_c *InterfaceClient) SetDyper(dyper Dyper, on bool) (err error) + func (_c *InterfaceClient) SetLED(led LED, r, g, b uint8) (err error) + func (_c *InterfaceClient) StartCurrentRecord(samples int, interval time.Duration) (err error) + func (_c *InterfaceClient) StopCurrentRecord() (err error) + func (_c *InterfaceClient) TS() (err error) + type InterfaceCloser interface + Close func() error + func GetDefaultSTM() (InterfaceCloser, error) + func NewDummy(context string) InterfaceCloser + type InterfaceDUTRequest struct + type InterfaceDUTResponse struct + type InterfaceGetCurrentRecordRequest struct + type InterfaceGetCurrentRecordResponse struct + Samples []int + type InterfaceGetCurrentRequest struct + type InterfaceGetCurrentResponse struct + Value int + type InterfaceHDMIRequest struct + On bool + type InterfaceHDMIResponse struct + type InterfacePowerTickRequest struct + D time.Duration + type InterfacePowerTickResponse struct + type InterfacePrintTextRequest struct + Color Color + Text string + X uint + Y uint + type InterfacePrintTextResponse struct + type InterfaceService struct + func NewInterfaceService(impl Interface) *InterfaceService + func (s *InterfaceService) ClearDisplay(request *InterfaceClearDisplayRequest, response *InterfaceClearDisplayResponse) (err error) + func (s *InterfaceService) DUT(request *InterfaceDUTRequest, response *InterfaceDUTResponse) (err error) + func (s *InterfaceService) GetCurrent(request *InterfaceGetCurrentRequest, response *InterfaceGetCurrentResponse) (err error) + func (s *InterfaceService) GetCurrentRecord(request *InterfaceGetCurrentRecordRequest, ...) (err error) + func (s *InterfaceService) HDMI(request *InterfaceHDMIRequest, response *InterfaceHDMIResponse) (err error) + func (s *InterfaceService) PowerTick(request *InterfacePowerTickRequest, response *InterfacePowerTickResponse) (err error) + func (s *InterfaceService) PrintText(request *InterfacePrintTextRequest, response *InterfacePrintTextResponse) (err error) + func (s *InterfaceService) SetDyper(request *InterfaceSetDyperRequest, response *InterfaceSetDyperResponse) (err error) + func (s *InterfaceService) SetLED(request *InterfaceSetLEDRequest, response *InterfaceSetLEDResponse) (err error) + func (s *InterfaceService) StartCurrentRecord(request *InterfaceStartCurrentRecordRequest, ...) (err error) + func (s *InterfaceService) StopCurrentRecord(request *InterfaceStopCurrentRecordRequest, ...) (err error) + func (s *InterfaceService) TS(request *InterfaceTSRequest, response *InterfaceTSResponse) (err error) + type InterfaceSetDyperRequest struct + Dyper Dyper + On bool + type InterfaceSetDyperResponse struct + type InterfaceSetLEDRequest struct + B uint8 + G uint8 + Led LED + R uint8 + type InterfaceSetLEDResponse struct + type InterfaceStartCurrentRecordRequest struct + Interval time.Duration + Samples int + type InterfaceStartCurrentRecordResponse struct + type InterfaceStopCurrentRecordRequest struct + type InterfaceStopCurrentRecordResponse struct + type InterfaceTSRequest struct + type InterfaceTSResponse struct + type LED string + const LED1 + const LED2 + type STM struct + func NewSTM(ttyPath string, baudrate int) *STM + func (stm *STM) ClearDisplay() error + func (stm *STM) Close() error + func (stm *STM) DUT() error + func (stm *STM) GetCurrent() (int, error) + func (stm *STM) GetCurrentRecord() (samples []int, err error) + func (stm *STM) HDMI(on bool) (err error) + func (stm *STM) Open() (err error) + func (stm *STM) PowerTick(d time.Duration) error + func (stm *STM) PrintText(x, y uint, color Color, text string) error + func (stm *STM) SetDyper(dyper Dyper, on bool) (err error) + func (stm *STM) SetLED(led LED, r, g, b uint8) error + func (stm *STM) StartCurrentRecord(samples int, interval time.Duration) (err error) + func (stm *STM) StopCurrentRecord() (err error) + func (stm *STM) TS() error + type UserInterface interface + DUT func() (err error) + GetCurrent func() (value int, err error) + GetCurrentRecord func() (samples []int, err error) + HDMI func(on bool) (err error) + PowerTick func(d time.Duration) (err error) + SetDyper func(dyper Dyper, on bool) (err error) + StartCurrentRecord func(samples int, interval time.Duration) (err error) + StopCurrentRecord func() (err error) + TS func() (err error) + type UserInterfaceClient struct + func DialUserInterfaceClient(addr string) (*UserInterfaceClient, error) + func NewUserInterfaceClient(client *rpc.Client) *UserInterfaceClient + func (_c *UserInterfaceClient) Close() error + func (_c *UserInterfaceClient) DUT() (err error) + func (_c *UserInterfaceClient) GetCurrent() (value int, err error) + func (_c *UserInterfaceClient) GetCurrentRecord() (samples []int, err error) + func (_c *UserInterfaceClient) HDMI(on bool) (err error) + func (_c *UserInterfaceClient) PowerTick(d time.Duration) (err error) + func (_c *UserInterfaceClient) SetDyper(dyper Dyper, on bool) (err error) + func (_c *UserInterfaceClient) StartCurrentRecord(samples int, interval time.Duration) (err error) + func (_c *UserInterfaceClient) StopCurrentRecord() (err error) + func (_c *UserInterfaceClient) TS() (err error) + type UserInterfaceDUTRequest struct + type UserInterfaceDUTResponse struct + type UserInterfaceGetCurrentRecordRequest struct + type UserInterfaceGetCurrentRecordResponse struct + Samples []int + type UserInterfaceGetCurrentRequest struct + type UserInterfaceGetCurrentResponse struct + Value int + type UserInterfaceHDMIRequest struct + On bool + type UserInterfaceHDMIResponse struct + type UserInterfacePowerTickRequest struct + D time.Duration + type UserInterfacePowerTickResponse struct + type UserInterfaceService struct + func NewUserInterfaceService(impl UserInterface) *UserInterfaceService + func (s *UserInterfaceService) DUT(request *UserInterfaceDUTRequest, response *UserInterfaceDUTResponse) (err error) + func (s *UserInterfaceService) GetCurrent(request *UserInterfaceGetCurrentRequest, ...) (err error) + func (s *UserInterfaceService) GetCurrentRecord(request *UserInterfaceGetCurrentRecordRequest, ...) (err error) + func (s *UserInterfaceService) HDMI(request *UserInterfaceHDMIRequest, response *UserInterfaceHDMIResponse) (err error) + func (s *UserInterfaceService) PowerTick(request *UserInterfacePowerTickRequest, ...) (err error) + func (s *UserInterfaceService) SetDyper(request *UserInterfaceSetDyperRequest, response *UserInterfaceSetDyperResponse) (err error) + func (s *UserInterfaceService) StartCurrentRecord(request *UserInterfaceStartCurrentRecordRequest, ...) (err error) + func (s *UserInterfaceService) StopCurrentRecord(request *UserInterfaceStopCurrentRecordRequest, ...) (err error) + func (s *UserInterfaceService) TS(request *UserInterfaceTSRequest, response *UserInterfaceTSResponse) (err error) + type UserInterfaceSetDyperRequest struct + Dyper Dyper + On bool + type UserInterfaceSetDyperResponse struct + type UserInterfaceStartCurrentRecordRequest struct + Interval time.Duration + Samples int + type UserInterfaceStartCurrentRecordResponse struct + type UserInterfaceStopCurrentRecordRequest struct + type UserInterfaceStopCurrentRecordResponse struct + type UserInterfaceTSRequest struct + type UserInterfaceTSResponse struct