Documentation
¶
Index ¶
- type Event
- type Handle
- type Reply
- type Router
- func (l *Router) Close()
- func (l *Router) Command(command string) Reply
- func (l *Router) Handle(remote string, button string, handle Handle)
- func (l *Router) Run(killChan chan struct{})
- func (l *Router) Send(command string) error
- func (l *Router) SendLong(command string, delay time.Duration) error
- func (l *Router) SetDefaultHandle(handle Handle)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle ¶
type Handle func(Event)
Handle is a function that can be registered to handle an lirc Event
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router manages sending and receiving of commands / data
func (*Router) Run ¶
func (l *Router) Run(killChan chan struct{})
Run this in a go routine to listen for IR Key Press Events
func (*Router) SetDefaultHandle ¶
Click to show internal directories.
Click to hide internal directories.