Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type ConfigCbFunc ¶
type ConfigCbFunc func(cfg ConfigRequest) (ConfigResponse, error)
type ConfigRequest ¶
type ConfigRequest struct { DeviceName string //0x8 SSID string //0xC Password string //0xB AirplayKey string /* ???, 0x9 */ }
func (ConfigRequest) Marshal ¶
func (config ConfigRequest) Marshal() []byte
func (*ConfigRequest) Unmarshal ¶
func (config *ConfigRequest) Unmarshal(data []byte) error
type ConfigResponse ¶
type ConfigResponse struct { IsEmpty bool DeviceName string //0x8 Model string //0x7 SerialNumber string //0xA FirmwareVersion string //0x2 HardwareVersion string //0x3 BundleSeed string //0x1 }
func (ConfigResponse) Marshal ¶
func (config ConfigResponse) Marshal() []byte
func (*ConfigResponse) Unmarshal ¶
func (config *ConfigResponse) Unmarshal(data []byte) error
type DoneCbFunc ¶
type DoneCbFunc func()
type ServiceDiscoveryResult ¶
func ClientDiscoverService ¶
func ClientDiscoverService(filterDeviceId string) (ServiceDiscoveryResult, error)
type WACClient ¶
type WACClient struct { Insecure bool // contains filtered or unexported fields }
func (*WACClient) Configure ¶
func (c *WACClient) Configure(destination string, config ConfigRequest) (*ConfigResponse, error)
type WACServer ¶
type WACServer struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(auth AuthHandler, singleSession bool, configCb ConfigCbFunc, doneCb DoneCbFunc) (*WACServer, error)
func (*WACServer) AckConfigurationChange ¶
type WACServerDiscovery ¶
type WACServerDiscovery struct {
// contains filtered or unexported fields
}
func NewServerDiscovery ¶
func NewServerDiscovery(deviceID string, name string, port int) *WACServerDiscovery
func (*WACServerDiscovery) CurrentAddress ¶
func (w *WACServerDiscovery) CurrentAddress() string
func (*WACServerDiscovery) IncrementSeed ¶
func (w *WACServerDiscovery) IncrementSeed()
func (*WACServerDiscovery) Start ¶
func (w *WACServerDiscovery) Start(ifaceName string, maxWaitIP time.Duration) error
func (*WACServerDiscovery) Stop ¶
func (w *WACServerDiscovery) Stop()
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
httpaddhost adds a dummy Host: header to http requests.
|
httpaddhost adds a dummy Host: header to http requests. |
Click to show internal directories.
Click to hide internal directories.