tuner

package module
v0.0.0-...-ac528da Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

README

orange-tuner

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDriverNotFound = fmt.Errorf("Driver not found")
)

Functions

func RegisterDriver

func RegisterDriver(name string, driver TunerDriver)

Types

type Config

type Config struct {
	Tuner []TunerConfig
}

func ReadConfig

func ReadConfig(reader io.Reader) (*Config, error)

type DefaultDriverConfig

type DefaultDriverConfig interface{}

type DriverConfig

type DriverConfig interface{}

type DriverError

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

func (DriverError) Error

func (de DriverError) Error() string

type Task

type Task interface {
	Progress() float32
	Cancel()
}

type Tuner

type Tuner interface {
	Scan() (Task, error)
	Tune(channel api.Channel) error
	Stream() (io.Reader, error)
	Channels() []api.Channel
}

type TunerConfig

type TunerConfig struct {
	Driver              TunerDriver
	TunerSpecificConfig DriverConfig
}

func (*TunerConfig) UnmarshalTOML

func (tc *TunerConfig) UnmarshalTOML(decode func(interface{}) error) (err error)

type TunerDriver

type TunerDriver interface {
	DefaultConfig() DefaultDriverConfig
	Connect(config DriverConfig) (Tuner, error)
}

func LookupDriver

func LookupDriver(name string) (TunerDriver, error)

Directories

Path Synopsis
package main contains CLI utilities for testing
package main contains CLI utilities for testing

Jump to

Keyboard shortcuts

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