Documentation
¶
Index ¶
- Constants
- Variables
- func FoobarAdjustVolume(state FoobarPlayerInfo, delta float64, credentials HTTPCredentials) (newVolume float64, isMin, isMax bool, err error)
- func FoobarNext(credentials HTTPCredentials) error
- func FoobarSeekRelative(delta int, credentials HTTPCredentials) error
- func FoobarStop(credentials HTTPCredentials) error
- func FoobarTogglePause(state FoobarPlayerInfo, credentials HTTPCredentials) error
- func LockDesktop()
- func RunTubeRemote(port int) <-chan TubeRemoteState
- func SetNextDefaultEndpoint() (err error)
- func SetNumLock(enabled bool)
- func SubscribeFoobarState(credentials HTTPCredentials) <-chan FoobarPlayerInfo
- func SubscribeMattermostState(settings MattermostSettings) <-chan MattermostState
- func SubscribeNotHubState(credentials HTTPCredentials) <-chan NotHubState
- func TubeRemoteAdjustVolume(delta int)
- func TubeRemoteSeek(delta int)
- func TubeRemoteStop()
- func TubeRemoteTogglePause()
- type FoobarPlayerInfo
- type HTTPCredentials
- type IPolicyConfigVista
- type IPolicyConfigVistaVtbl
- type MattermostSettings
- type MattermostState
- type NotHubState
- type TubeRemoteState
Constants ¶
View Source
const ( VK_NUMLOCK = 0x90 KEYEVENTF_EXTENDEDKEY = 0x1 KEYEVENTF_KEYUP = 0x2 )
View Source
const ( FoobarStateOffline = "offline" FoobarStateStopped = "stopped" FoobarStatePlaying = "playing" FoobarStatePaused = "paused" )
View Source
const ( TubeRemoteStateOffline = "offline" TubeRemoteStateStopped = "stopped" TubeRemoteStatePlaying = "playing" TubeRemoteStatePaused = "paused" )
Variables ¶
View Source
var ( IID_IPolicyConfigVista = ole.NewGUID("568b9108-44bf-40b4-9006-86afe5b5a620") CLSID_PolicyConfigVista = ole.NewGUID("294935CE-F637-4E7C-A41B-AB255460B862") )
Functions ¶
func FoobarAdjustVolume ¶
func FoobarAdjustVolume(state FoobarPlayerInfo, delta float64, credentials HTTPCredentials) (newVolume float64, isMin, isMax bool, err error)
func FoobarNext ¶
func FoobarNext(credentials HTTPCredentials) error
func FoobarSeekRelative ¶
func FoobarSeekRelative(delta int, credentials HTTPCredentials) error
func FoobarStop ¶
func FoobarStop(credentials HTTPCredentials) error
func FoobarTogglePause ¶
func FoobarTogglePause(state FoobarPlayerInfo, credentials HTTPCredentials) error
func LockDesktop ¶
func LockDesktop()
func RunTubeRemote ¶
func RunTubeRemote(port int) <-chan TubeRemoteState
func SetNextDefaultEndpoint ¶
func SetNextDefaultEndpoint() (err error)
func SetNumLock ¶
func SetNumLock(enabled bool)
func SubscribeFoobarState ¶
func SubscribeFoobarState(credentials HTTPCredentials) <-chan FoobarPlayerInfo
func SubscribeMattermostState ¶
func SubscribeMattermostState(settings MattermostSettings) <-chan MattermostState
func SubscribeNotHubState ¶
func SubscribeNotHubState(credentials HTTPCredentials) <-chan NotHubState
func TubeRemoteAdjustVolume ¶
func TubeRemoteAdjustVolume(delta int)
func TubeRemoteSeek ¶
func TubeRemoteSeek(delta int)
func TubeRemoteStop ¶
func TubeRemoteStop()
func TubeRemoteTogglePause ¶
func TubeRemoteTogglePause()
Types ¶
type FoobarPlayerInfo ¶
type HTTPCredentials ¶
type IPolicyConfigVista ¶
type IPolicyConfigVista struct {
ole.IUnknown
}
func (*IPolicyConfigVista) SetDefaultEndpoint ¶
func (v *IPolicyConfigVista) SetDefaultEndpoint(deviceID string, eRole wca.ERole) (err error)
func (*IPolicyConfigVista) VTable ¶
func (v *IPolicyConfigVista) VTable() *IPolicyConfigVistaVtbl
type IPolicyConfigVistaVtbl ¶
type MattermostSettings ¶
type MattermostState ¶
type TubeRemoteState ¶
func (*TubeRemoteState) Offline ¶
func (s *TubeRemoteState) Offline() bool
func (*TubeRemoteState) Playing ¶
func (s *TubeRemoteState) Playing() bool
Click to show internal directories.
Click to hide internal directories.