rpc

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *log.Logger, ipcPath string) *mpv.MPV

func Pipe

func Pipe(path string) string

Types

type Conn

type Conn interface {
	io.Writer
	io.Reader
	io.Closer
}

func Dial

func Dial(path string) (Conn, error)

type RPC

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

func (*RPC) Close

func (m *RPC) Close() error

func (*RPC) Command

func (m *RPC) Command(v ...string) error

func (*RPC) GetProperty

func (m *RPC) GetProperty(n string) (interface{}, error)

func (*RPC) GetPropertyDouble

func (m *RPC) GetPropertyDouble(n string) (float64, error)

func (*RPC) Init

func (m *RPC) Init(events chan<- mpv.Event) error

func (*RPC) SetPropertyBool

func (m *RPC) SetPropertyBool(n string, v bool) error

func (*RPC) SetPropertyDouble

func (m *RPC) SetPropertyDouble(n string, v float64) error

func (*RPC) SetPropertyString

func (m *RPC) SetPropertyString(n, v string) error

Jump to

Keyboard shortcuts

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