remote

package
v0.0.0-...-ebf2a4a Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package remote .

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidButton .
	ErrInvalidButton = errors.New("invalid button")
)

Functions

This section is empty.

Types

type Duration

type Duration struct {
	time.Duration
}

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

type Remote

type Remote struct {
	// contains filtered or unexported fields
}

func New

func New(configFile string, keyboard eventer) (*Remote, error)

New .

func (*Remote) KeyPress

func (r *Remote) KeyPress(button string) error

KeyPress .

func (*Remote) LoadConfig

func (r *Remote) LoadConfig() error

LoadConfig .

Jump to

Keyboard shortcuts

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