epson

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 2

README

epson-projector-driver

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDelay

func WithDelay(t time.Duration) Option

func WithTTL

func WithTTL(t time.Duration) Option

type Projector

type Projector struct {
	Address string
	Pool    *connpool.Pool
}

func NewProjector

func NewProjector(addr string, opts ...Option) *Projector

func (*Projector) GetActiveSignal added in v0.0.2

func (p *Projector) GetActiveSignal(ctx context.Context, port string) (bool, error)

func (*Projector) GetBlanked

func (p *Projector) GetBlanked(ctx context.Context) (bool, error)

func (*Projector) GetInfo

func (p *Projector) GetInfo(ctx context.Context) (interface{}, error)

func (*Projector) GetInput

func (p *Projector) GetInput(ctx context.Context) (string, error)

func (*Projector) GetMutedByBlock

func (p *Projector) GetMutedByBlock(ctx context.Context, block string) (bool, error)

func (*Projector) GetPower

func (p *Projector) GetPower(ctx context.Context) (string, error)

func (*Projector) GetVolumeByBlock

func (p *Projector) GetVolumeByBlock(ctx context.Context, block string) (int, error)

func (*Projector) SetBlanked

func (p *Projector) SetBlanked(ctx context.Context, blanked bool) error

func (*Projector) SetInput

func (p *Projector) SetInput(ctx context.Context, input string) error

func (*Projector) SetMutedByBlock

func (p *Projector) SetMutedByBlock(ctx context.Context, block string, muted bool) error

func (*Projector) SetPower

func (p *Projector) SetPower(ctx context.Context, power string) error

func (*Projector) SetVolumeByBlock

func (p *Projector) SetVolumeByBlock(ctx context.Context, block string, volume int) error

Jump to

Keyboard shortcuts

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