Versions in this module Expand all Collapse all v1 v1.0.3 Oct 14, 2021 v1.0.2 Oct 12, 2021 Changes in this version + const IKEA_DEFAULT_PORT + var ErrAuthenticationError = errors.New("Authentication Error") + type Balance int16 + const ROTEL_BALANCE_LEFT_MAX + const ROTEL_BALANCE_NONE + const ROTEL_BALANCE_OFF + const ROTEL_BALANCE_RIGHT_MAX + func (b Balance) String() string + type Bypass uint16 + const ROTEL_BYPASS_MAX + const ROTEL_BYPASS_NONE + const ROTEL_BYPASS_OFF + const ROTEL_BYPASS_ON + func (b Bypass) String() string + type Cast interface + Connect func(CastDevice, gopi.RPCFlag) error + Devices func(context.Context) ([]CastDevice, error) + Disconnect func(CastDevice) error + type CastApp interface + ID func() string + Name func() string + Status func() string + type CastDevice interface + App func() CastApp + Id func() string + LaunchAppWithId func(string) error + LoadURL func(url string, autoplay bool) error + Model func() string + Name func() string + Service func() string + SetMute func(mute bool) error + SetPause func(bool) error + SetPlay func(bool) error + SetVolume func(level float32) error + State func() uint + Volume func() CastVolume + type CastEvent interface + Device func() CastDevice + Type func() CastEventType + type CastEventType uint + const CAST_EVENT_ADDED + const CAST_EVENT_NONE + const CAST_EVENT_REMOVED + const CAST_EVENT_UPDATED + func (v CastEventType) String() string + type CastVolume interface + Level func() float32 + Muted func() bool + type Command uint16 + const ROTEL_COMMAND_BALANCE_LEFT + const ROTEL_COMMAND_BALANCE_RESET + const ROTEL_COMMAND_BALANCE_RIGHT + const ROTEL_COMMAND_BASS_DOWN + const ROTEL_COMMAND_BASS_RESET + const ROTEL_COMMAND_BASS_UP + const ROTEL_COMMAND_DIMMER_TOGGLE + const ROTEL_COMMAND_MAX + const ROTEL_COMMAND_MUTE_TOGGLE + const ROTEL_COMMAND_NONE + const ROTEL_COMMAND_PAUSE + const ROTEL_COMMAND_PLAY + const ROTEL_COMMAND_POWER_TOGGLE + const ROTEL_COMMAND_SPEAKER_A_TOGGLE + const ROTEL_COMMAND_SPEAKER_B_TOGGLE + const ROTEL_COMMAND_STOP + const ROTEL_COMMAND_TRACK_NEXT + const ROTEL_COMMAND_TRACK_PREV + const ROTEL_COMMAND_TREBLE_DOWN + const ROTEL_COMMAND_TREBLE_RESET + const ROTEL_COMMAND_TREBLE_UP + const ROTEL_COMMAND_VOL_DOWN + const ROTEL_COMMAND_VOL_UP + func (c Command) String() string + type DVBCodeRate uint + const DVB_FEC_1_2 + const DVB_FEC_2_3 + const DVB_FEC_2_5 + const DVB_FEC_3_4 + const DVB_FEC_3_5 + const DVB_FEC_4_5 + const DVB_FEC_5_6 + const DVB_FEC_6_7 + const DVB_FEC_7_8 + const DVB_FEC_8_9 + const DVB_FEC_9_10 + const DVB_FEC_AUTO + const DVB_FEC_MAX + const DVB_FEC_MIN + const DVB_FEC_NONE + func (r DVBCodeRate) String() string + type DVBDeliverySystem uint + const DVB_SYS_ATSC + const DVB_SYS_ATSCMH + const DVB_SYS_CMMB + const DVB_SYS_DAB + const DVB_SYS_DSS + const DVB_SYS_DTMB + const DVB_SYS_DVBC_ANNEX_A + const DVB_SYS_DVBC_ANNEX_B + const DVB_SYS_DVBC_ANNEX_C + const DVB_SYS_DVBH + const DVB_SYS_DVBS + const DVB_SYS_DVBS2 + const DVB_SYS_DVBT + const DVB_SYS_DVBT2 + const DVB_SYS_ISDBC + const DVB_SYS_ISDBS + const DVB_SYS_ISDBT + const DVB_SYS_MAX + const DVB_SYS_MIN + const DVB_SYS_NONE + const DVB_SYS_TURBO + func (v DVBDeliverySystem) String() string + type DVBDemux interface + DestroyFilter func(DVBFilter) error + NewStreamFilter func([]uint16) (DVBFilter, error) + ScanEITNowNext func(bool) (DVBFilter, error) + ScanNIT func(bool) (DVBFilter, error) + ScanPAT func() (DVBFilter, error) + ScanPMT func(DVBSection) ([]DVBFilter, error) + ScanSDT func(bool) (DVBFilter, error) + type DVBFilter interface + Fd func() uintptr + Start func() error + Stop func() error + type DVBFrontend interface + DeliverySystems func() []DVBDeliverySystem + Name func() string + Tune func(context.Context, DVBProperties) error + type DVBGuardInterval uint + const DVB_GUARD_INTERVAL_19_128 + const DVB_GUARD_INTERVAL_19_256 + const DVB_GUARD_INTERVAL_1_128 + const DVB_GUARD_INTERVAL_1_16 + const DVB_GUARD_INTERVAL_1_32 + const DVB_GUARD_INTERVAL_1_4 + const DVB_GUARD_INTERVAL_1_8 + const DVB_GUARD_INTERVAL_AUTO + const DVB_GUARD_INTERVAL_MAX + const DVB_GUARD_INTERVAL_MIN + const DVB_GUARD_INTERVAL_PN420 + const DVB_GUARD_INTERVAL_PN595 + const DVB_GUARD_INTERVAL_PN945 + func (v DVBGuardInterval) String() string + type DVBHierarchy uint + const DVB_HIERARCHY_1 + const DVB_HIERARCHY_2 + const DVB_HIERARCHY_4 + const DVB_HIERARCHY_AUTO + const DVB_HIERARCHY_MAX + const DVB_HIERARCHY_MIN + const DVB_HIERARCHY_NONE + func (v DVBHierarchy) String() string + type DVBInterleaving uint + const DVB_INTERLEAVING_240 + const DVB_INTERLEAVING_72 + const DVB_INTERLEAVING_AUTO + const DVB_INTERLEAVING_MAX + const DVB_INTERLEAVING_MIN + const DVB_INTERLEAVING_NONE + func (v DVBInterleaving) String() string + type DVBInversion uint + const DVB_INVERSION_AUTO + const DVB_INVERSION_MAX + const DVB_INVERSION_MIN + const DVB_INVERSION_OFF + const DVB_INVERSION_ON + func (v DVBInversion) String() string + type DVBModulation uint + const DVB_MODULATION_APSK_16 + const DVB_MODULATION_APSK_32 + const DVB_MODULATION_DQPSK + const DVB_MODULATION_MAX + const DVB_MODULATION_MIN + const DVB_MODULATION_PSK_8 + const DVB_MODULATION_QAM_128 + const DVB_MODULATION_QAM_16 + const DVB_MODULATION_QAM_256 + const DVB_MODULATION_QAM_32 + const DVB_MODULATION_QAM_4_NR + const DVB_MODULATION_QAM_64 + const DVB_MODULATION_QAM_AUTO + const DVB_MODULATION_QPSK + const DVB_MODULATION_VSB_16 + const DVB_MODULATION_VSB_8 + func (v DVBModulation) String() string + type DVBProperties interface + Bandwidth func() uint32 + CodeRateHP func() (DVBCodeRate, error) + CodeRateLP func() (DVBCodeRate, error) + DeliverySystem func() (DVBDeliverySystem, error) + Frequency func() uint32 + GuardInterval func() (DVBGuardInterval, error) + Hierarchy func() (DVBHierarchy, error) + Inversion func() (DVBInversion, error) + Modulation func() (DVBModulation, error) + Name func() string + TransmitMode func() (DVBTransmitMode, error) + type DVBSection interface + Type func() DVBTableType + type DVBSectionEvent interface + Filter func() DVBFilter + Section func() DVBSection + Type func() DVBTableType + type DVBStreamType uint8 + const DVB_ES_TYPE_AAC + const DVB_ES_TYPE_DSMCC + const DVB_ES_TYPE_DSMCC_A + const DVB_ES_TYPE_DSMCC_B + const DVB_ES_TYPE_DSMCC_C + const DVB_ES_TYPE_DSMCC_D + const DVB_ES_TYPE_H222_1 + const DVB_ES_TYPE_H264_VIDEO + const DVB_ES_TYPE_H265_VIDEO + const DVB_ES_TYPE_MHEG + const DVB_ES_TYPE_MPEG1_AUDIO + const DVB_ES_TYPE_MPEG1_VIDEO + const DVB_ES_TYPE_MPEG2_AUDIO + const DVB_ES_TYPE_MPEG2_AUX + const DVB_ES_TYPE_MPEG2_VIDEO + const DVB_ES_TYPE_MPEG4_AUDIO + const DVB_ES_TYPE_MPEG4_VIDEO + const DVB_ES_TYPE_NONE + const DVB_ES_TYPE_PRIV_PES + const DVB_ES_TYPE_PRIV_SECT + func (v DVBStreamType) String() string + type DVBTable interface + Properties func(string) []DVBProperties + type DVBTableType uint8 + const DVB_TS_TABLE_BAT + const DVB_TS_TABLE_CAT + const DVB_TS_TABLE_EIT + const DVB_TS_TABLE_EIT_OTHER + const DVB_TS_TABLE_NIT + const DVB_TS_TABLE_NIT_OTHER + const DVB_TS_TABLE_PAT + const DVB_TS_TABLE_PMT + const DVB_TS_TABLE_SDT + const DVB_TS_TABLE_SDT_OTHER + const DVB_TS_TABLE_TDT + func (v DVBTableType) String() string + type DVBTransmitMode uint + const DVB_TRANSMIT_MODE_16K + const DVB_TRANSMIT_MODE_1K + const DVB_TRANSMIT_MODE_2K + const DVB_TRANSMIT_MODE_32K + const DVB_TRANSMIT_MODE_4K + const DVB_TRANSMIT_MODE_8K + const DVB_TRANSMIT_MODE_AUTO + const DVB_TRANSMIT_MODE_C1 + const DVB_TRANSMIT_MODE_C3780 + const DVB_TRANSMIT_MODE_MAX + const DVB_TRANSMIT_MODE_MIN + func (v DVBTransmitMode) String() string + type Device interface + Id func() string + Name func() string + Traits func() []TraitType + type Dimmer uint16 + const ROTEL_DIMMER_MAX + const ROTEL_DIMMER_MIN + const ROTEL_DIMMER_NONE + const ROTEL_DIMMER_OFF + func (d Dimmer) String() string + type Ecovacs interface + Authenticate func() error + Connect func(EvovacsDevice) error + Devices func() ([]EvovacsDevice, error) + Disconnect func(EvovacsDevice) error + type EcovacsCleanMode string + const ECOVACS_CLEAN_AUTO + const ECOVACS_CLEAN_BORDER + const ECOVACS_CLEAN_ROOM + const ECOVACS_CLEAN_SPOT + const ECOVACS_CLEAN_STOP + type EcovacsCleanSuction string + const ECOVACS_SUCTION_STANDARD + const ECOVACS_SUCTION_STRONG + type EcovacsEvent interface + Device func() EvovacsDevice + Id func() string + Type func() EcovacsEventType + type EcovacsEventType uint + const ECOVACS_EVENT_BATTERYLEVEL + const ECOVACS_EVENT_CHARGESTATE + const ECOVACS_EVENT_CLEANSTATE + const ECOVACS_EVENT_ERROR + const ECOVACS_EVENT_LIFESPAN + const ECOVACS_EVENT_LOG + const ECOVACS_EVENT_NONE + const ECOVACS_EVENT_TIME + const ECOVACS_EVENT_VERSION + func (v EcovacsEventType) String() string + type EcovacsPart string + const ECOVACS_PART_BRUSH + const ECOVACS_PART_DUSTFILTER + const ECOVACS_PART_SIDEBRUSH + type Event interface + Device func() Device + Node func() Node + Traits func() []TraitType + Type func() EventType + type EventType uint + const EVENT_DEVICE_ADDED + const EVENT_DEVICE_METADATA_CHANGED + const EVENT_DEVICE_REMOVED + const EVENT_DEVICE_TRAIT_CHANGED + const EVENT_NODE_OFFLINE + const EVENT_NODE_ONLINE + const EVENT_NONE + const ROTEL_EVENT_TYPE_BALANCE + const ROTEL_EVENT_TYPE_BASS + const ROTEL_EVENT_TYPE_BYPASS + const ROTEL_EVENT_TYPE_DIMMER + const ROTEL_EVENT_TYPE_FREQ + const ROTEL_EVENT_TYPE_MUTE + const ROTEL_EVENT_TYPE_NONE + const ROTEL_EVENT_TYPE_POWER + const ROTEL_EVENT_TYPE_SOURCE + const ROTEL_EVENT_TYPE_SPEAKER + const ROTEL_EVENT_TYPE_TREBLE + const ROTEL_EVENT_TYPE_UPDATE + const ROTEL_EVENT_TYPE_VOLUME + func (v EventType) String() string + type EvovacsDevice interface + Address func() string + Charge func() (string, error) + Clean func(EcovacsCleanMode, EcovacsCleanSuction) (string, error) + GetBatteryInfo func() (string, error) + GetChargeState func() (string, error) + GetCleanState func() (string, error) + GetLifeSpan func(EcovacsPart) (string, error) + GetVersion func() (string, error) + Id func() string + Nickname func() string + type HttpServer interface + ServeStatic func(string) (*url.URL, error) + Stop func(context.Context) error + type InfluxDB interface + NewResultSet func(tags map[string]string) InfluxRS + Write func(InfluxRS) error + type InfluxRS interface + Add func(string, map[string]interface{}) error + AddTS func(string, map[string]interface{}, time.Time) error + RemoveAll func() + type LightTrait interface + Brightness func() float32 + SetBrightness func(float32, time.Duration) error + type Mute uint16 + const ROTEL_MUTE_MAX + const ROTEL_MUTE_NONE + const ROTEL_MUTE_OFF + const ROTEL_MUTE_ON + func (m Mute) String() string + type Node interface + Device func(string) Device + Id func() string + Name func() string + type NodeStub interface + Ping func(context.Context) error + type Power uint16 + const ROTEL_POWER_MAX + const ROTEL_POWER_NONE + const ROTEL_POWER_ON + const ROTEL_POWER_STANDBY + func (p Power) String() string + type PowerTrait interface + Power func() TraitType + SetPower func(TraitType) error + type Rotel interface + Get func() RotelState + Model func() string + Send func(Command) error + Set func(RotelState) error + type RotelClient interface + Get func() (RotelState, error) + Ping func() error + Send func(Command) error + Set func(RotelState) error + StreamEvents func(ctx context.Context) error + type RotelEvent interface + State func() RotelState + Type func() EventType + type RotelState struct + Bass Tone + Freq string + Treble Tone + func (s RotelState) String() string + type Source uint16 + const ROTEL_SOURCE_AUX1 + const ROTEL_SOURCE_AUX2 + const ROTEL_SOURCE_BLUETOOTH + const ROTEL_SOURCE_CD + const ROTEL_SOURCE_COAX1 + const ROTEL_SOURCE_COAX2 + const ROTEL_SOURCE_MAX + const ROTEL_SOURCE_NONE + const ROTEL_SOURCE_OPT1 + const ROTEL_SOURCE_OPT2 + const ROTEL_SOURCE_OTHER + const ROTEL_SOURCE_PC_USB + const ROTEL_SOURCE_PHONO + const ROTEL_SOURCE_TUNER + const ROTEL_SOURCE_USB + func (s Source) String() string + type Speaker uint16 + const ROTEL_SPEAKER_A + const ROTEL_SPEAKER_ALL + const ROTEL_SPEAKER_B + const ROTEL_SPEAKER_NONE + const ROTEL_SPEAKER_OFF + func (s Speaker) String() string + type Tone int16 + const ROTEL_TONE_MAX + const ROTEL_TONE_MIN + const ROTEL_TONE_NONE + const ROTEL_TONE_OFF + func (t Tone) String() string + type TradfriCommand interface + Body func() (io.Reader, error) + Path func() string + type TradfriDevice interface + Active func() bool + Created func() time.Time + Id func() uint + Lights func() []TradfriLight + Name func() string + Type func() TradfriDeviceType + Updated func() time.Time + type TradfriDeviceType uint + const IKEA_DEVICE_TYPE_BLIND + const IKEA_DEVICE_TYPE_LIGHT + const IKEA_DEVICE_TYPE_MOTIONSENSOR + const IKEA_DEVICE_TYPE_PLUG + const IKEA_DEVICE_TYPE_REMOTE + const IKEA_DEVICE_TYPE_REPEATER + const IKEA_DEVICE_TYPE_SLAVE_REMOTE + func (t TradfriDeviceType) String() string + type TradfriGateway interface + Connect func(gopi.RPCServiceRecord, gopi.RPCFlag) error + Devices func() ([]uint, error) + Disconnect func() error + Groups func() ([]uint, error) + Id func() string + Scenes func() ([]uint, error) + Version func() string + type TradfriGroup interface + Devices func() []uint + Id func() uint + Name func() string + type TradfriLight interface + Brightness func() uint8 + ColorHex func() string + ColorXY func() (uint16, uint16) + Power func() bool + SetBrightness func(uint8, time.Duration) TradfriCommand + SetColorHex func(string, time.Duration) TradfriCommand + SetColorXY func(uint16, uint16, time.Duration) TradfriCommand + SetPower func(bool) TradfriCommand + SetTemperature func(uint16, time.Duration) TradfriCommand + Temperature func() uint16 + type TraitType uint + const TRAIT_LIGHT_BRIGHTNESS + const TRAIT_LIGHT_COLOR + const TRAIT_LIGHT_TEMPERATURE + const TRAIT_LIGHT_TRANSITION + const TRAIT_NONE + const TRAIT_POWER_OFF + const TRAIT_POWER_ON + const TRAIT_POWER_STANDBY + const TRAIT_POWER_TOGGLE + func (v TraitType) String() string + type Update uint16 + const ROTEL_UPDATE_AUTO + const ROTEL_UPDATE_MANUAL + const ROTEL_UPDATE_NONE + const ROTEL_UPDATE_OTHER + func (u Update) String() string + type Volume uint16 + const ROTEL_VOLUME_MAX + const ROTEL_VOLUME_MIN + const ROTEL_VOLUME_NONE + func (v Volume) String() string