pjlink

package module
v0.0.0-...-6407f89 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUndefinedCommand = errors.New("undefined command")
	ErrInvalidInput     = errors.New("nonexistent input source")
	ErrOutOfParameter   = errors.New("out of parameter")
	ErrUnavailableTime  = errors.New("unavailable time")
	ErrProjectorFailure = errors.New("projector/display failure")
	ErrAuth             = errors.New("invalid password")
)

Functions

This section is empty.

Types

type Option

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

func WithAVOnlyMute

func WithAVOnlyMute() Option

func WithLogger

func WithLogger(l *zap.Logger) Option

func WithPassword

func WithPassword(password string) Option

func WithPort

func WithPort(port int) Option

func WithPowerOnDelay

func WithPowerOnDelay(delay time.Duration) Option

type Projector

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

func NewProjector

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

func (*Projector) Blank

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

func (*Projector) Power

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

func (*Projector) SetBlank

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

func (*Projector) SetPower

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

SetPower sets the power state of the projector.

func (*Projector) SetVideoInput

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

func (*Projector) VideoInputs

func (p *Projector) VideoInputs(ctx context.Context) (map[string]string, error)

Jump to

Keyboard shortcuts

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