Documentation ¶
Index ¶
- func DoneCh(ch chan struct{}) func(*Proxy)
- func EventHandler(h func(rotator.Rotator, rotator.Heading)) func(*Proxy)
- func Host(host string) func(*Proxy)
- func Port(port int) func(*Proxy)
- type Proxy
- func (r *Proxy) AzPreset() int
- func (r *Proxy) Azimuth() int
- func (r *Proxy) Close()
- func (r *Proxy) ElPreset() int
- func (r *Proxy) Elevation() int
- func (r *Proxy) HasAzimuth() bool
- func (r *Proxy) HasElevation() bool
- func (r *Proxy) Name() string
- func (r *Proxy) Serialize() rotator.Object
- func (r *Proxy) SetAzimuth(az int) error
- func (r *Proxy) SetElevation(el int) error
- func (r *Proxy) Stop() error
- func (r *Proxy) StopAzimuth() error
- func (r *Proxy) StopElevation() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoneCh ¶
func DoneCh(ch chan struct{}) func(*Proxy)
DoneCh is a functional option allows you to pass a channel to the proxy object. The channel will be closed and thus notifies you when the object has been deleted.
func EventHandler ¶
EventHandler sets a callback function through which the proxy rotator will report Events
Types ¶
type Proxy ¶
Proxy is a proxy object representing a remote rotator. It implements the rotator.Rotator interface. Behind the scenes it sychronizes itself with the real rotator through a websocket.
func (*Proxy) HasAzimuth ¶
func (*Proxy) HasElevation ¶
func (*Proxy) SetAzimuth ¶
func (*Proxy) SetElevation ¶
func (*Proxy) StopAzimuth ¶
func (*Proxy) StopElevation ¶
Click to show internal directories.
Click to hide internal directories.