Documentation ¶ Index ¶ type Config type Control func NewControl(conf Config) (*Control, error) func (d *Control) Close() error func (d *Control) Execute(input []byte, outLen int) ([]byte, error) func (d *Control) Read(outBuf []byte) (int, error) func (d *Control) Write(input []byte) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { DryRun bool Path string ControlCode uint32 } type Control ¶ type Control struct { Config // contains filtered or unexported fields } func NewControl ¶ func NewControl(conf Config) (*Control, error) func (*Control) Close ¶ func (d *Control) Close() error func (*Control) Execute ¶ func (d *Control) Execute(input []byte, outLen int) ([]byte, error) func (*Control) Read ¶ func (d *Control) Read(outBuf []byte) (int, error) func (*Control) Write ¶ func (d *Control) Write(input []byte) (int, error) Source Files ¶ View all Source files device.go Click to show internal directories. Click to hide internal directories.