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
}
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 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)
Click to show internal directories.
Click to hide internal directories.