lirc

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2017 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidReplies because lircd replies invalid format data
	ErrInvalidReplies = errors.New("invalid replies")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.Mutex

	Verbose bool
	// contains filtered or unexported fields
}

Client for lircd

func New

func New(path ...string) (client *Client, err error)

New construct Client instance

func (*Client) Close

func (cli *Client) Close() error

Close connection

func (*Client) List

func (cli *Client) List(remote string, code ...string) (replies []string, err error)

List command

func (*Client) SendOnce

func (cli *Client) SendOnce(remote string, code ...string) (err error)

SendOnce command

func (*Client) SendStart

func (cli *Client) SendStart(remote string, code string) (err error)

SendStart command

func (*Client) SendStop

func (cli *Client) SendStop(remote string, code string) (err error)

SendStop command

func (*Client) Version added in v0.2.3

func (cli *Client) Version() (version string, err error)

Version command

type Reply

type Reply struct {
	Command string
	Success bool
	Data    []string
}

Reply from lircd

Jump to

Keyboard shortcuts

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