Documentation
¶
Overview ¶
Package devicediscoveryextension provides a fluent Go API over the macOS DeviceDiscoveryExtension framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Errors ¶
Failing calls return errors carrying the Objective-C error domain and code. Match them against this package's Err… sentinel values with errors.Is, or inspect domain, code, and Apple's prose via errors.As with *errkit.Error.
Index ¶
- Variables
- func DDDeviceCategoryToString(inValue DDDeviceCategory) string
- func DDDeviceMediaPlaybackStateToString(inValue DDDeviceMediaPlaybackState) string
- func DDDeviceProtocolStringDIAL() obj.Object
- func DDDeviceProtocolStringInvalid() obj.Object
- func DDDeviceProtocolToString(inValue DDDeviceProtocol) string
- func DDDeviceStateToString(inValue DDDeviceState) string
- func DDErrorDomain() obj.Object
- func DDEventTypeToString(inValue DDEventType) string
- type ACLEntryID
- type ACLFlag
- type ACLPerm
- type ACLTag
- type ACLType
- type BrowserState
- type Clockid
- type ConnectionGroupState
- type ConnectionState
- type DDDevice
- func (dd *DDDevice) BluetoothIdentifier() *foundation.UUID
- func (dd *DDDevice) Category() DDDeviceCategory
- func (dd *DDDevice) Description() string
- func (dd *DDDevice) DeviceSupports() DDDeviceSupports
- func (dd *DDDevice) DisplayImageName() string
- func (dd *DDDevice) DisplayName() string
- func (dd *DDDevice) Identifier() string
- func (dd *DDDevice) IsEqual(other obj.Object) bool
- func (dd *DDDevice) IsKind(className string) bool
- func (dd *DDDevice) MediaContentSubtitle() string
- func (dd *DDDevice) MediaContentTitle() string
- func (dd *DDDevice) MediaPlaybackState() DDDeviceMediaPlaybackState
- func (dd *DDDevice) NetworkEndpoint() *foundation.Object
- func (dd *DDDevice) Protocol() DDDeviceProtocol
- func (dd *DDDevice) ProtocolType() obj.Object
- func (dd *DDDevice) SSID() string
- func (dd *DDDevice) State() DDDeviceState
- func (dd *DDDevice) String() string
- func (dd *DDDevice) SupportsGrouping() bool
- func (dd *DDDevice) TxtRecordData() []byte
- func (dd *DDDevice) URL() string
- func (dd *DDDevice) WifiAwareModelName() string
- func (dd *DDDevice) WifiAwareServiceName() string
- func (dd *DDDevice) WifiAwareServiceRole() DDDeviceWiFiAwareServiceRole
- func (dd *DDDevice) WifiAwareVendorName() string
- func (dd *DDDevice) WithBluetoothIdentifier(bluetoothIdentifier obj.Object) *DDDevice
- func (dd *DDDevice) WithCategory(category DDDeviceCategory) *DDDevice
- func (dd *DDDevice) WithDeviceSupports(deviceSupports DDDeviceSupports) *DDDevice
- func (dd *DDDevice) WithDisplayImageName(displayImageName string) *DDDevice
- func (dd *DDDevice) WithDisplayName(displayName string) *DDDevice
- func (dd *DDDevice) WithIdentifier(identifier string) *DDDevice
- func (dd *DDDevice) WithMediaContentSubtitle(mediaContentSubtitle string) *DDDevice
- func (dd *DDDevice) WithMediaContentTitle(mediaContentTitle string) *DDDevice
- func (dd *DDDevice) WithMediaPlaybackState(mediaPlaybackState DDDeviceMediaPlaybackState) *DDDevice
- func (dd *DDDevice) WithNetworkEndpoint(networkEndpoint obj.Object) *DDDevice
- func (dd *DDDevice) WithProtocol(protocol DDDeviceProtocol) *DDDevice
- func (dd *DDDevice) WithProtocolType(protocolType obj.Object) *DDDevice
- func (dd *DDDevice) WithSSID(ssid string) *DDDevice
- func (dd *DDDevice) WithState(state DDDeviceState) *DDDevice
- func (dd *DDDevice) WithSupportsGrouping(supportsGrouping bool) *DDDevice
- func (dd *DDDevice) WithTxtRecordData(txtRecordData []byte) *DDDevice
- func (dd *DDDevice) WithURL(url string) *DDDevice
- func (dd *DDDevice) WithWifiAwareModelName(wifiAwareModelName string) *DDDevice
- func (dd *DDDevice) WithWifiAwareServiceName(wifiAwareServiceName string) *DDDevice
- func (dd *DDDevice) WithWifiAwareServiceRole(wifiAwareServiceRole DDDeviceWiFiAwareServiceRole) *DDDevice
- func (dd *DDDevice) WithWifiAwareVendorName(wifiAwareVendorName string) *DDDevice
- type DDDeviceCategory
- type DDDeviceEvent
- type DDDeviceMediaPlaybackState
- type DDDeviceProtocol
- type DDDeviceState
- type DDDeviceSupports
- type DDDeviceWiFiAwareServiceRole
- type DDDiscoverySession
- type DDErrorCode
- type DDEventType
- type DNSServiceAAAAPolicy
- type DataTransferReportState
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EndpointType
- type ErrorDomain
- type EthernetChannelState
- type FilesecProperty
- type FramerStartResult
- type IPEcnFlag
- type IPLocalAddressPreference
- type IPVersion
- type Idtype
- type InterfaceRadioType
- type InterfaceType
- type IpcInfoObjectType
- type LaunchDataType
- type LinkQuality
- type ListenerState
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type MultipathService
- type MultipathVersion
- type OSClockid
- type ParametersExpiredDNSBehavior
- type PathStatus
- type PathUnsatisfiedReason
- type PtrauthKey
- type QosClass
- type QuicStreamType
- type ReportResolutionProtocol
- type ReportResolutionSource
- type ServiceClass
- type TxtRecordFindKey
- type VirtualMemoryGuardExceptionCode
- type WsCloseCode
- type WsOpcode
- type WsResponseStatus
- type WsVersion
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
var ErrCodeBadParameter = errkit.New("DDErrorDomain", 350001)
ErrCodeBadParameter matches the DeviceDiscoveryExtension error DDErrorCodeBadParameter.
var ErrCodeInternal = errkit.New("DDErrorDomain", 350004)
ErrCodeInternal matches the DeviceDiscoveryExtension error DDErrorCodeInternal.
var ErrCodeMissingEntitlement = errkit.New("DDErrorDomain", 350005)
ErrCodeMissingEntitlement matches the DeviceDiscoveryExtension error DDErrorCodeMissingEntitlement.
var ErrCodeNext = errkit.New("DDErrorDomain", 350007)
ErrCodeNext matches the DeviceDiscoveryExtension error DDErrorCodeNext.
var ErrCodePermission = errkit.New("DDErrorDomain", 350006)
ErrCodePermission matches the DeviceDiscoveryExtension error DDErrorCodePermission.
var ErrCodeSuccess = errkit.New("DDErrorDomain", 0)
ErrCodeSuccess matches the DeviceDiscoveryExtension error DDErrorCodeSuccess.
var ErrCodeTimeout = errkit.New("DDErrorDomain", 350003)
ErrCodeTimeout matches the DeviceDiscoveryExtension error DDErrorCodeTimeout.
var ErrCodeUnknown = errkit.New("DDErrorDomain", 350000)
ErrCodeUnknown matches the DeviceDiscoveryExtension error DDErrorCodeUnknown.
var ErrCodeUnsupported = errkit.New("DDErrorDomain", 350002)
ErrCodeUnsupported matches the DeviceDiscoveryExtension error DDErrorCodeUnsupported.
Functions ¶
func DDDeviceCategoryToString ¶
func DDDeviceCategoryToString(inValue DDDeviceCategory) string
DDDeviceCategoryToString calls the DeviceDiscoveryExtension framework function DDDeviceCategoryToString.
func DDDeviceMediaPlaybackStateToString ¶
func DDDeviceMediaPlaybackStateToString(inValue DDDeviceMediaPlaybackState) string
DDDeviceMediaPlaybackStateToString calls the DeviceDiscoveryExtension framework function DDDeviceMediaPlaybackStateToString.
func DDDeviceProtocolStringDIAL ¶
DDDeviceProtocolStringDIAL returns the string constant DDDeviceProtocolStringDIAL, for use as a dictionary key or argument.
func DDDeviceProtocolStringInvalid ¶
DDDeviceProtocolStringInvalid returns the string constant DDDeviceProtocolStringInvalid, for use as a dictionary key or argument.
func DDDeviceProtocolToString ¶
func DDDeviceProtocolToString(inValue DDDeviceProtocol) string
DDDeviceProtocolToString calls the DeviceDiscoveryExtension framework function DDDeviceProtocolToString.
func DDDeviceStateToString ¶
func DDDeviceStateToString(inValue DDDeviceState) string
DDDeviceStateToString calls the DeviceDiscoveryExtension framework function DDDeviceStateToString.
func DDErrorDomain ¶
DDErrorDomain returns the string constant DDErrorDomain, for use as a dictionary key or argument.
func DDEventTypeToString ¶
func DDEventTypeToString(inValue DDEventType) string
DDEventTypeToString calls the DeviceDiscoveryExtension framework function DDEventTypeToString.
Types ¶
type ACLEntryID ¶ added in v0.17.0
type ACLEntryID int32
const ( ACLEntryIDFirstEntry ACLEntryID = 0 ACLEntryIDNextEntry ACLEntryID = -1 ACLEntryIDLastEntry ACLEntryID = -2 )
func (ACLEntryID) String ¶ added in v0.17.0
func (e ACLEntryID) String() string
String returns the ACLEntryID constant's name, or its numeric form when the value is not a known constant.
type ACLPerm ¶ added in v0.17.0
type ACLPerm int32
const ( ACLPermReadData ACLPerm = 2 ACLPermListDirectory ACLPerm = 2 ACLPermWriteData ACLPerm = 4 ACLPermAddFile ACLPerm = 4 ACLPermExecute ACLPerm = 8 ACLPermSearch ACLPerm = 8 ACLPermDelete ACLPerm = 16 ACLPermAppendData ACLPerm = 32 ACLPermAddSubdirectory ACLPerm = 32 ACLPermDeleteChild ACLPerm = 64 ACLPermReadAttributes ACLPerm = 128 ACLPermWriteAttributes ACLPerm = 256 ACLPermReadExtattributes ACLPerm = 512 ACLPermWriteExtattributes ACLPerm = 1024 ACLPermReadSecurity ACLPerm = 2048 ACLPermWriteSecurity ACLPerm = 4096 ACLPermChangeOwner ACLPerm = 8192 ACLPermSynchronize ACLPerm = 1048576 )
type BrowserState ¶ added in v0.17.0
type BrowserState int32
Browser states sent by nw_browser_set_state_changed_handler.
const ( Nw_browser_state_invalid BrowserState = 0 Nw_browser_state_ready BrowserState = 1 Nw_browser_state_failed BrowserState = 2 Nw_browser_state_cancelled BrowserState = 3 Nw_browser_state_waiting BrowserState = 4 )
func (BrowserState) String ¶ added in v0.17.0
func (e BrowserState) String() string
String returns the BrowserState constant's name, or its numeric form when the value is not a known constant.
type ConnectionGroupState ¶ added in v0.17.0
type ConnectionGroupState int32
Connection Group states sent by nw_connection_group_set_state_changed_handler. States progress forward and do not move backwards.
const ( Nw_connection_group_state_invalid ConnectionGroupState = 0 Nw_connection_group_state_waiting ConnectionGroupState = 1 Nw_connection_group_state_ready ConnectionGroupState = 2 Nw_connection_group_state_failed ConnectionGroupState = 3 Nw_connection_group_state_cancelled ConnectionGroupState = 4 )
func (ConnectionGroupState) String ¶ added in v0.17.0
func (e ConnectionGroupState) String() string
String returns the ConnectionGroupState constant's name, or its numeric form when the value is not a known constant.
type ConnectionState ¶ added in v0.17.0
type ConnectionState int32
Connection states sent by nw_connection_set_state_changed_handler. States generally progress forward and do not move backwards, with the exception of preparing and waiting, which may alternate before the connection becomes ready or failed.
const ( Nw_connection_state_invalid ConnectionState = 0 Nw_connection_state_waiting ConnectionState = 1 Nw_connection_state_preparing ConnectionState = 2 Nw_connection_state_ready ConnectionState = 3 Nw_connection_state_failed ConnectionState = 4 Nw_connection_state_cancelled ConnectionState = 5 )
func (ConnectionState) String ¶ added in v0.17.0
func (e ConnectionState) String() string
String returns the ConnectionState constant's name, or its numeric form when the value is not a known constant.
type DDDevice ¶
DDDevice is an idiomatic wrapper over the Objective-C class DDDevice.
An object that describes a discovered device of interest.
func DDDeviceFromID ¶
DDDeviceFromID adopts an existing Objective-C object as a DDDevice (nil for 0), retaining it and registering a release finalizer.
func NewDDDeviceWithDisplayNameCategoryProtocolTypeIdentifier ¶ added in v0.17.0
func NewDDDeviceWithDisplayNameCategoryProtocolTypeIdentifier(displayName string, category DDDeviceCategory, protocolType obj.Object, identifier string) *DDDevice
NewDDDeviceWithDisplayNameCategoryProtocolTypeIdentifier creates an object that describes a discovered device.
func (*DDDevice) BluetoothIdentifier ¶
func (dd *DDDevice) BluetoothIdentifier() *foundation.UUID
BluetoothIdentifier returns identifier to communicate with the device via Bluetooth.
func (*DDDevice) Category ¶
func (dd *DDDevice) Category() DDDeviceCategory
Category returns category of the device.
func (*DDDevice) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*DDDevice) DeviceSupports ¶
func (dd *DDDevice) DeviceSupports() DDDeviceSupports
DeviceSupports returns device supported capabilities.
func (*DDDevice) DisplayImageName ¶
DisplayImageName returns device's custom asset for product image name in the main App bundle.
func (*DDDevice) DisplayName ¶
DisplayName returns name of the device. Should be suitable for displaying to a user.
func (*DDDevice) Identifier ¶
Identifier returns identifier of the device.
func (*DDDevice) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*DDDevice) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*DDDevice) MediaContentSubtitle ¶
MediaContentSubtitle returns subtitle of the media content being played. It can be used to display extra information about the content, such as the name of the artist.
func (*DDDevice) MediaContentTitle ¶
MediaContentTitle returns title of the media content being played.
func (*DDDevice) MediaPlaybackState ¶
func (dd *DDDevice) MediaPlaybackState() DDDeviceMediaPlaybackState
MediaPlaybackState returns current state of media playback on this device.
func (*DDDevice) NetworkEndpoint ¶
func (dd *DDDevice) NetworkEndpoint() *foundation.Object
NetworkEndpoint returns endpoint to communicate with the device via networking.
func (*DDDevice) Protocol ¶
func (dd *DDDevice) Protocol() DDDeviceProtocol
Protocol returns protocol of the device.
func (*DDDevice) ProtocolType ¶
ProtocolType returns uniform Type for the protocol.
func (*DDDevice) State ¶
func (dd *DDDevice) State() DDDeviceState
State returns state of the device.
func (*DDDevice) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*DDDevice) SupportsGrouping ¶
SupportsGrouping reports whether the device supports grouping with other devices with the same protocol.
func (*DDDevice) TxtRecordData ¶
TxtRecordData returns TXT record of the device.
func (*DDDevice) URL ¶ added in v0.17.0
URL returns URL used for SSDP connection. The URL must have a valid hostname, no query parameters, and a maximum size of 100 bytes.
func (*DDDevice) WifiAwareModelName ¶
WifiAwareModelName returns device's Wi-Fi Aware model name.
func (*DDDevice) WifiAwareServiceName ¶
WifiAwareServiceName returns device's Wi-Fi Aware's service name.
func (*DDDevice) WifiAwareServiceRole ¶
func (dd *DDDevice) WifiAwareServiceRole() DDDeviceWiFiAwareServiceRole
WifiAwareServiceRole returns device's Wi-Fi Aware's service. Default is `DDDeviceWiFiAwareServiceRoleSubscriber`
func (*DDDevice) WifiAwareVendorName ¶
WifiAwareVendorName returns device's Wi-Fi Aware vendor name.
func (*DDDevice) WithBluetoothIdentifier ¶ added in v0.17.0
WithBluetoothIdentifier sets an identifier to communicate with the device through Bluetooth wireless technology.
func (*DDDevice) WithCategory ¶ added in v0.17.0
func (dd *DDDevice) WithCategory(category DDDeviceCategory) *DDDevice
WithCategory sets an option that determies the icon that the picker UI displays for the device.
func (*DDDevice) WithDeviceSupports ¶ added in v0.17.0
func (dd *DDDevice) WithDeviceSupports(deviceSupports DDDeviceSupports) *DDDevice
WithDeviceSupports sets device supported capabilities.
func (*DDDevice) WithDisplayImageName ¶ added in v0.17.0
WithDisplayImageName sets device's custom asset for product image name in the main App bundle.
func (*DDDevice) WithDisplayName ¶ added in v0.17.0
WithDisplayName sets a name for the device to display to the user.
func (*DDDevice) WithIdentifier ¶ added in v0.17.0
WithIdentifier sets a unique identifier for the device.
func (*DDDevice) WithMediaContentSubtitle ¶ added in v0.17.0
WithMediaContentSubtitle sets a subtitle for the current media that the device plays.
func (*DDDevice) WithMediaContentTitle ¶ added in v0.17.0
WithMediaContentTitle sets a title for the current media that the device plays.
func (*DDDevice) WithMediaPlaybackState ¶ added in v0.17.0
func (dd *DDDevice) WithMediaPlaybackState(mediaPlaybackState DDDeviceMediaPlaybackState) *DDDevice
WithMediaPlaybackState sets a playback status for the device’s current media.
func (*DDDevice) WithNetworkEndpoint ¶ added in v0.17.0
WithNetworkEndpoint sets an object that describes a local-network device.
func (*DDDevice) WithProtocol ¶ added in v0.17.0
func (dd *DDDevice) WithProtocol(protocol DDDeviceProtocol) *DDDevice
WithProtocol sets the manner in which the system applies your app’s device discovery extension.
func (*DDDevice) WithProtocolType ¶ added in v0.17.0
WithProtocolType sets a custom universal type that describes the device’s manner of communication with the extension.
func (*DDDevice) WithState ¶ added in v0.17.0
func (dd *DDDevice) WithState(state DDDeviceState) *DDDevice
WithState sets a state that represents the level of user interaction with the device.
func (*DDDevice) WithSupportsGrouping ¶ added in v0.17.0
WithSupportsGrouping sets a Boolean value that indicates whether to group the device with others in the AirPlay UI.
func (*DDDevice) WithTxtRecordData ¶ added in v0.17.0
WithTxtRecordData sets a dictionary of metadata for the device that the extension communicates with over the local network.
func (*DDDevice) WithURL ¶ added in v0.17.0
WithURL sets a resource locator for the simple service discovery protocol.
func (*DDDevice) WithWifiAwareModelName ¶ added in v0.17.0
WithWifiAwareModelName sets device’s Wi-Fi Aware model name.
func (*DDDevice) WithWifiAwareServiceName ¶ added in v0.17.0
WithWifiAwareServiceName sets device’s Wi-Fi Aware’s service name.
func (*DDDevice) WithWifiAwareServiceRole ¶ added in v0.17.0
func (dd *DDDevice) WithWifiAwareServiceRole(wifiAwareServiceRole DDDeviceWiFiAwareServiceRole) *DDDevice
WithWifiAwareServiceRole sets device’s Wi-Fi Aware’s service. Default is DDDeviceWiFiAwareServiceRoleSubscriber
func (*DDDevice) WithWifiAwareVendorName ¶ added in v0.17.0
WithWifiAwareVendorName sets device’s Wi-Fi Aware vendor name.
type DDDeviceCategory ¶
type DDDeviceCategory int64
An option that determines the icon for the device in the picker UI.
const ( DDDeviceCategoryHiFiSpeaker DDDeviceCategory = 0 DDDeviceCategoryHiFiSpeakerMultiple DDDeviceCategory = 1 DDDeviceCategoryTVWithMediaBox DDDeviceCategory = 2 DDDeviceCategoryTV DDDeviceCategory = 3 DDDeviceCategoryLaptopComputer DDDeviceCategory = 4 DDDeviceCategoryDesktopComputer DDDeviceCategory = 5 DDDeviceCategoryAccessorySetup DDDeviceCategory = 6 )
func (DDDeviceCategory) String ¶
func (e DDDeviceCategory) String() string
String returns the DDDeviceCategory constant's name, or its numeric form when the value is not a known constant.
type DDDeviceEvent ¶
DDDeviceEvent is an idiomatic wrapper over the Objective-C class DDDeviceEvent.
An object that provides a device or communicates its change in status.
func DDDeviceEventFromID ¶
func DDDeviceEventFromID(id objc.ID) *DDDeviceEvent
DDDeviceEventFromID adopts an existing Objective-C object as a DDDeviceEvent (nil for 0), retaining it and registering a release finalizer.
func NewDDDeviceEventWithEventTypeDevice ¶ added in v0.17.0
func NewDDDeviceEventWithEventTypeDevice(type_ DDEventType, device *DDDevice) *DDDeviceEvent
NewDDDeviceEventWithEventTypeDevice creates an event object that conveys status for a discovered device of interest.
func (*DDDeviceEvent) Description ¶ added in v0.17.0
func (dde *DDDeviceEvent) Description() string
Description returns the object's -description text.
func (*DDDeviceEvent) Device ¶
func (dde *DDDeviceEvent) Device() *DDDevice
Device returns device found or lost.
func (*DDDeviceEvent) EventType ¶
func (dde *DDDeviceEvent) EventType() DDEventType
EventType returns type of event.
func (*DDDeviceEvent) IsEqual ¶ added in v0.17.0
func (dde *DDDeviceEvent) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*DDDeviceEvent) IsKind ¶ added in v0.17.0
func (dde *DDDeviceEvent) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*DDDeviceEvent) String ¶ added in v0.17.0
func (dde *DDDeviceEvent) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type DDDeviceMediaPlaybackState ¶
type DDDeviceMediaPlaybackState int64
States that indicate the status of a device’s media playback.
const ( DDDeviceMediaPlaybackStateNoContent DDDeviceMediaPlaybackState = 0 DDDeviceMediaPlaybackStatePaused DDDeviceMediaPlaybackState = 1 DDDeviceMediaPlaybackStatePlaying DDDeviceMediaPlaybackState = 2 )
func (DDDeviceMediaPlaybackState) String ¶
func (e DDDeviceMediaPlaybackState) String() string
String returns the DDDeviceMediaPlaybackState constant's name, or its numeric form when the value is not a known constant.
type DDDeviceProtocol ¶
type DDDeviceProtocol int64
An identifier for the manner in which an app interacts with a device.
const ( DDDeviceProtocolInvalid DDDeviceProtocol = 0 DDDeviceProtocolDIAL DDDeviceProtocol = 1 )
func (DDDeviceProtocol) String ¶
func (e DDDeviceProtocol) String() string
String returns the DDDeviceProtocol constant's name, or its numeric form when the value is not a known constant.
type DDDeviceState ¶
type DDDeviceState int64
A state that represents the level of user interaction with the device.
const ( // A state that indicates the device is invalid or that the user disapproves of the device. DDDeviceStateInvalid DDDeviceState = 0 // A state that indicates when the user selects the device in the picker UI. DDDeviceStateActivating DDDeviceState = 10 // A state that indicates when the user authorizes the device and the app connects to the device. DDDeviceStateActivated DDDeviceState = 20 // A state that indicates when the user authorizes the device. DDDeviceStateAuthorized DDDeviceState = 25 // A state that indicates that the device is soon to be invalid. DDDeviceStateInvalidating DDDeviceState = 30 )
func (DDDeviceState) String ¶
func (e DDDeviceState) String() string
String returns the DDDeviceState constant's name, or its numeric form when the value is not a known constant.
type DDDeviceSupports ¶
type DDDeviceSupports uint64
Bitmask — values may be combined with |.
const ( DDDeviceSupportsBluetoothPairingLE DDDeviceSupports = 2 DDDeviceSupportsBluetoothTransportBridging DDDeviceSupports = 4 // Device supports bring up of classic transport profiles when low energy transport for peripheral is connected. DDDeviceSupportsBluetoothHID DDDeviceSupports = 8 )
func (DDDeviceSupports) String ¶
func (e DDDeviceSupports) String() string
String returns the DDDeviceSupports constant's name, or its numeric form when the value is not a known constant.
type DDDeviceWiFiAwareServiceRole ¶
type DDDeviceWiFiAwareServiceRole int64
const ( DDDeviceWiFiAwareServiceRoleSubscriber DDDeviceWiFiAwareServiceRole = 10 DDDeviceWiFiAwareServiceRolePublisher DDDeviceWiFiAwareServiceRole = 20 )
func (DDDeviceWiFiAwareServiceRole) String ¶
func (e DDDeviceWiFiAwareServiceRole) String() string
String returns the DDDeviceWiFiAwareServiceRole constant's name, or its numeric form when the value is not a known constant.
type DDDiscoverySession ¶
DDDiscoverySession is an idiomatic wrapper over the Objective-C class DDDiscoverySession.
An object that relays device discovery events from the extension to the system.
func DDDiscoverySessionFromID ¶
func DDDiscoverySessionFromID(id objc.ID) *DDDiscoverySession
DDDiscoverySessionFromID adopts an existing Objective-C object as a DDDiscoverySession (nil for 0), retaining it and registering a release finalizer.
func NewDDDiscoverySession ¶ added in v0.17.0
func NewDDDiscoverySession() *DDDiscoverySession
NewDDDiscoverySession creates a new DDDiscoverySession.
func (*DDDiscoverySession) Description ¶ added in v0.17.0
func (dds *DDDiscoverySession) Description() string
Description returns the object's -description text.
func (*DDDiscoverySession) IsEqual ¶ added in v0.17.0
func (dds *DDDiscoverySession) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*DDDiscoverySession) IsKind ¶ added in v0.17.0
func (dds *DDDiscoverySession) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*DDDiscoverySession) ReportEvent ¶
func (dds *DDDiscoverySession) ReportEvent(inEvent *DDDeviceEvent)
ReportEvent reports an event to the system.
func (*DDDiscoverySession) String ¶ added in v0.17.0
func (dds *DDDiscoverySession) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type DDErrorCode ¶
type DDErrorCode int64
Codes that identify errors that can occur during the framework’s use.
const ( DDErrorCodeSuccess DDErrorCode = 0 DDErrorCodeUnknown DDErrorCode = 350000 DDErrorCodeBadParameter DDErrorCode = 350001 DDErrorCodeUnsupported DDErrorCode = 350002 DDErrorCodeTimeout DDErrorCode = 350003 DDErrorCodeInternal DDErrorCode = 350004 DDErrorCodeMissingEntitlement DDErrorCode = 350005 DDErrorCodePermission DDErrorCode = 350006 DDErrorCodeNext DDErrorCode = 350007 )
func (DDErrorCode) String ¶
func (e DDErrorCode) String() string
String returns the DDErrorCode constant's name, or its numeric form when the value is not a known constant.
type DDEventType ¶
type DDEventType int64
Identifiers for the types of events that occur in the device discovery life cycle.
const ( DDEventTypeUnknown DDEventType = 0 DDEventTypeDeviceFound DDEventType = 40 DDEventTypeDeviceLost DDEventType = 41 DDEventTypeDeviceChanged DDEventType = 42 )
func (DDEventType) String ¶
func (e DDEventType) String() string
String returns the DDEventType constant's name, or its numeric form when the value is not a known constant.
type DNSServiceAAAAPolicy ¶
type DNSServiceAAAAPolicy int32
const ( KDNSServiceAAAAPolicyNone DNSServiceAAAAPolicy = 0 KDNSServiceAAAAPolicyFallback DNSServiceAAAAPolicy = 1 )
func (DNSServiceAAAAPolicy) String ¶
func (e DNSServiceAAAAPolicy) String() string
String returns the DNSServiceAAAAPolicy constant's name, or its numeric form when the value is not a known constant.
type DataTransferReportState ¶ added in v0.17.0
type DataTransferReportState int32
The state of a Data Transfer Report indicates whether or not the contents have been collected, and are ready to be accessed.
const ( Nw_data_transfer_report_state_collecting DataTransferReportState = 1 Nw_data_transfer_report_state_collected DataTransferReportState = 2 )
func (DataTransferReportState) String ¶ added in v0.17.0
func (e DataTransferReportState) String() string
String returns the DataTransferReportState constant's name, or its numeric form when the value is not a known constant.
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type EndpointType ¶ added in v0.17.0
type EndpointType int32
Endpoint types represent a well-known form of endpoint. Values may be added to this enumeration, and some custom endpoint types may use values not defined in this enumeration.
const ( Nw_endpoint_type_invalid EndpointType = 0 Nw_endpoint_type_address EndpointType = 1 Nw_endpoint_type_host EndpointType = 2 Nw_endpoint_type_bonjour_service EndpointType = 3 Nw_endpoint_type_url EndpointType = 4 )
func (EndpointType) String ¶ added in v0.17.0
func (e EndpointType) String() string
String returns the EndpointType constant's name, or its numeric form when the value is not a known constant.
type ErrorDomain ¶ added in v0.17.0
type ErrorDomain int32
The enumeration of network error domains.
const ( Nw_error_domain_invalid ErrorDomain = 0 Nw_error_domain_posix ErrorDomain = 1 Nw_error_domain_dns ErrorDomain = 2 Nw_error_domain_tls ErrorDomain = 3 Nw_error_domain_wifi_aware ErrorDomain = 4 )
func (ErrorDomain) String ¶ added in v0.17.0
func (e ErrorDomain) String() string
String returns the ErrorDomain constant's name, or its numeric form when the value is not a known constant.
type EthernetChannelState ¶ added in v0.17.0
type EthernetChannelState int32
const ( Nw_ethernet_channel_state_invalid EthernetChannelState = 0 Nw_ethernet_channel_state_waiting EthernetChannelState = 1 Nw_ethernet_channel_state_preparing EthernetChannelState = 2 Nw_ethernet_channel_state_ready EthernetChannelState = 3 Nw_ethernet_channel_state_failed EthernetChannelState = 4 Nw_ethernet_channel_state_cancelled EthernetChannelState = 5 )
func (EthernetChannelState) String ¶ added in v0.17.0
func (e EthernetChannelState) String() string
String returns the EthernetChannelState constant's name, or its numeric form when the value is not a known constant.
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type FramerStartResult ¶ added in v0.17.0
type FramerStartResult int32
const ( Nw_framer_start_result_ready FramerStartResult = 1 Nw_framer_start_result_will_mark_ready FramerStartResult = 2 )
func (FramerStartResult) String ¶ added in v0.17.0
func (e FramerStartResult) String() string
String returns the FramerStartResult constant's name, or its numeric form when the value is not a known constant.
type IPEcnFlag ¶ added in v0.17.0
type IPEcnFlag int32
ECN flags marked in IP headers to indicate congestion.
type IPLocalAddressPreference ¶ added in v0.17.0
type IPLocalAddressPreference int32
Preference for local addresses selection.
const ( Nw_ip_local_address_preference_default IPLocalAddressPreference = 0 Nw_ip_local_address_preference_temporary IPLocalAddressPreference = 1 Nw_ip_local_address_preference_stable IPLocalAddressPreference = 2 )
func (IPLocalAddressPreference) String ¶ added in v0.17.0
func (e IPLocalAddressPreference) String() string
String returns the IPLocalAddressPreference constant's name, or its numeric form when the value is not a known constant.
type InterfaceRadioType ¶ added in v0.17.0
type InterfaceRadioType int32
Interface radio types represent the radio technology for a network link.
const ( Nw_interface_radio_type_unknown InterfaceRadioType = 0 Nw_interface_radio_type_wifi_b InterfaceRadioType = 1 Nw_interface_radio_type_wifi_a InterfaceRadioType = 2 Nw_interface_radio_type_wifi_g InterfaceRadioType = 3 Nw_interface_radio_type_wifi_n InterfaceRadioType = 4 Nw_interface_radio_type_wifi_ac InterfaceRadioType = 5 Nw_interface_radio_type_wifi_ax InterfaceRadioType = 6 Nw_interface_radio_type_cell_lte InterfaceRadioType = 128 Nw_interface_radio_type_cell_endc_sub6 InterfaceRadioType = 129 Nw_interface_radio_type_cell_endc_mmw InterfaceRadioType = 130 Nw_interface_radio_type_cell_nr_sa_sub6 InterfaceRadioType = 131 Nw_interface_radio_type_cell_nr_sa_mmw InterfaceRadioType = 132 Nw_interface_radio_type_cell_wcdma InterfaceRadioType = 133 Nw_interface_radio_type_cell_gsm InterfaceRadioType = 134 Nw_interface_radio_type_cell_cdma InterfaceRadioType = 135 Nw_interface_radio_type_cell_evdo InterfaceRadioType = 136 )
func (InterfaceRadioType) String ¶ added in v0.17.0
func (e InterfaceRadioType) String() string
String returns the InterfaceRadioType constant's name, or its numeric form when the value is not a known constant.
type InterfaceType ¶ added in v0.17.0
type InterfaceType int32
Interface types represent the underlying media for a network link, such as Wi-Fi or Cellular.
const ( Nw_interface_type_other InterfaceType = 0 Nw_interface_type_wifi InterfaceType = 1 Nw_interface_type_cellular InterfaceType = 2 Nw_interface_type_wired InterfaceType = 3 Nw_interface_type_loopback InterfaceType = 4 )
func (InterfaceType) String ¶ added in v0.17.0
func (e InterfaceType) String() string
String returns the InterfaceType constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type LinkQuality ¶ added in v0.17.0
type LinkQuality int32
Link quality measurement is a representation of the expected capabilities of the link layer network attachment. Use this value to tune initial values for algorithms that can scale with the capabilities of the network. Do not use this value to gate connection attempts or to override adjustments that would be made based on actual network performance.
const ( Nw_link_quality_unknown LinkQuality = 0 Nw_link_quality_minimal LinkQuality = 10 Nw_link_quality_moderate LinkQuality = 20 Nw_link_quality_good LinkQuality = 30 )
func (LinkQuality) String ¶ added in v0.17.0
func (e LinkQuality) String() string
String returns the LinkQuality constant's name, or its numeric form when the value is not a known constant.
type ListenerState ¶ added in v0.17.0
type ListenerState int32
Listener states sent by nw_listener_set_state_changed_handler. States progress forward and do not move backwards.
const ( Nw_listener_state_invalid ListenerState = 0 Nw_listener_state_waiting ListenerState = 1 Nw_listener_state_ready ListenerState = 2 Nw_listener_state_failed ListenerState = 3 Nw_listener_state_cancelled ListenerState = 4 )
func (ListenerState) String ¶ added in v0.17.0
func (e ListenerState) String() string
String returns the ListenerState constant's name, or its numeric form when the value is not a known constant.
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type MultipathService ¶ added in v0.17.0
type MultipathService int32
Multipath services represent the modes of multipath usage that are allowed for connections.
const ( Nw_multipath_service_disabled MultipathService = 0 Nw_multipath_service_handover MultipathService = 1 Nw_multipath_service_interactive MultipathService = 2 Nw_multipath_service_aggregate MultipathService = 3 )
func (MultipathService) String ¶ added in v0.17.0
func (e MultipathService) String() string
String returns the MultipathService constant's name, or its numeric form when the value is not a known constant.
type MultipathVersion ¶ added in v0.17.0
type MultipathVersion int32
Multipath versions represent the MPTCP standard versions
const ( Nw_multipath_version_unspecified MultipathVersion = -1 Nw_multipath_version_0 MultipathVersion = 0 Nw_multipath_version_1 MultipathVersion = 1 )
func (MultipathVersion) String ¶ added in v0.17.0
func (e MultipathVersion) String() string
String returns the MultipathVersion constant's name, or its numeric form when the value is not a known constant.
type ParametersExpiredDNSBehavior ¶ added in v0.17.0
type ParametersExpiredDNSBehavior int32
Expired DNS behavior defines whether or not a connection will allow the use of expired DNS answers during connection establishment.
const ( Nw_parameters_expired_dns_behavior_default ParametersExpiredDNSBehavior = 0 Nw_parameters_expired_dns_behavior_allow ParametersExpiredDNSBehavior = 1 Nw_parameters_expired_dns_behavior_prohibit ParametersExpiredDNSBehavior = 2 Nw_parameters_expired_dns_behavior_persistent ParametersExpiredDNSBehavior = 3 )
func (ParametersExpiredDNSBehavior) String ¶ added in v0.17.0
func (e ParametersExpiredDNSBehavior) String() string
String returns the ParametersExpiredDNSBehavior constant's name, or its numeric form when the value is not a known constant.
type PathStatus ¶ added in v0.17.0
type PathStatus int32
A network path status indicates if there is a usable route available upon which to send and receive data.
const ( Nw_path_status_invalid PathStatus = 0 Nw_path_status_satisfied PathStatus = 1 Nw_path_status_unsatisfied PathStatus = 2 Nw_path_status_satisfiable PathStatus = 3 )
func (PathStatus) String ¶ added in v0.17.0
func (e PathStatus) String() string
String returns the PathStatus constant's name, or its numeric form when the value is not a known constant.
type PathUnsatisfiedReason ¶ added in v0.17.0
type PathUnsatisfiedReason int32
A network path unsatisfied reason may indicate the reason the path is currently unsatisfied for some conditions.
const ( Nw_path_unsatisfied_reason_not_available PathUnsatisfiedReason = 0 Nw_path_unsatisfied_reason_cellular_denied PathUnsatisfiedReason = 1 Nw_path_unsatisfied_reason_wifi_denied PathUnsatisfiedReason = 2 Nw_path_unsatisfied_reason_local_network_denied PathUnsatisfiedReason = 3 Nw_path_unsatisfied_reason_vpn_inactive PathUnsatisfiedReason = 4 )
func (PathUnsatisfiedReason) String ¶ added in v0.17.0
func (e PathUnsatisfiedReason) String() string
String returns the PathUnsatisfiedReason constant's name, or its numeric form when the value is not a known constant.
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type QuicStreamType ¶ added in v0.17.0
type QuicStreamType int32
Represents the type of a QUIC stream.
const ( Nw_quic_stream_type_unknown QuicStreamType = 0 Nw_quic_stream_type_bidirectional QuicStreamType = 1 Nw_quic_stream_type_unidirectional QuicStreamType = 2 Nw_quic_stream_type_datagram QuicStreamType = 3 )
func (QuicStreamType) String ¶ added in v0.17.0
func (e QuicStreamType) String() string
String returns the QuicStreamType constant's name, or its numeric form when the value is not a known constant.
type ReportResolutionProtocol ¶ added in v0.17.0
type ReportResolutionProtocol int32
The protocol used for endpoint resolution.
const ( Nw_report_resolution_protocol_unknown ReportResolutionProtocol = 0 Nw_report_resolution_protocol_udp ReportResolutionProtocol = 1 Nw_report_resolution_protocol_tcp ReportResolutionProtocol = 2 Nw_report_resolution_protocol_tls ReportResolutionProtocol = 3 Nw_report_resolution_protocol_https ReportResolutionProtocol = 4 )
func (ReportResolutionProtocol) String ¶ added in v0.17.0
func (e ReportResolutionProtocol) String() string
String returns the ReportResolutionProtocol constant's name, or its numeric form when the value is not a known constant.
type ReportResolutionSource ¶ added in v0.17.0
type ReportResolutionSource int32
The source of a resolution indicates if the set of endpoints was resolved locally using a cache, or sent a query over the network.
const ( Nw_report_resolution_source_query ReportResolutionSource = 1 Nw_report_resolution_source_cache ReportResolutionSource = 2 Nw_report_resolution_source_expired_cache ReportResolutionSource = 3 )
func (ReportResolutionSource) String ¶ added in v0.17.0
func (e ReportResolutionSource) String() string
String returns the ReportResolutionSource constant's name, or its numeric form when the value is not a known constant.
type ServiceClass ¶ added in v0.17.0
type ServiceClass int32
The network service class represents the network queuing priority to use for traffic generated by a connection.
const ( Nw_service_class_best_effort ServiceClass = 0 Nw_service_class_background ServiceClass = 1 Nw_service_class_interactive_video ServiceClass = 2 Nw_service_class_interactive_voice ServiceClass = 3 Nw_service_class_responsive_data ServiceClass = 4 Nw_service_class_signaling ServiceClass = 5 )
func (ServiceClass) String ¶ added in v0.17.0
func (e ServiceClass) String() string
String returns the ServiceClass constant's name, or its numeric form when the value is not a known constant.
type TxtRecordFindKey ¶ added in v0.17.0
type TxtRecordFindKey int32
An enumeration of possible find results when trying to find a key-value pair in the TXT record object.
const ( Nw_txt_record_find_key_invalid TxtRecordFindKey = 0 Nw_txt_record_find_key_not_present TxtRecordFindKey = 1 Nw_txt_record_find_key_no_value TxtRecordFindKey = 2 Nw_txt_record_find_key_empty_value TxtRecordFindKey = 3 Nw_txt_record_find_key_non_empty_value TxtRecordFindKey = 4 )
func (TxtRecordFindKey) String ¶ added in v0.17.0
func (e TxtRecordFindKey) String() string
String returns the TxtRecordFindKey constant's name, or its numeric form when the value is not a known constant.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type WsCloseCode ¶ added in v0.17.0
type WsCloseCode int32
WebSocket close codes that describe the reason for closing a WebSocket connection. Endpoints MAY use the following pre-defined status codes when sending a Close frame.
const ( Nw_ws_close_code_normal_closure WsCloseCode = 1000 Nw_ws_close_code_going_away WsCloseCode = 1001 Nw_ws_close_code_protocol_error WsCloseCode = 1002 Nw_ws_close_code_unsupported_data WsCloseCode = 1003 Nw_ws_close_code_no_status_received WsCloseCode = 1005 Nw_ws_close_code_abnormal_closure WsCloseCode = 1006 Nw_ws_close_code_invalid_frame_payload_data WsCloseCode = 1007 Nw_ws_close_code_policy_violation WsCloseCode = 1008 Nw_ws_close_code_message_too_big WsCloseCode = 1009 Nw_ws_close_code_mandatory_extension WsCloseCode = 1010 Nw_ws_close_code_internal_server_error WsCloseCode = 1011 Nw_ws_close_code_tls_handshake WsCloseCode = 1015 )
func (WsCloseCode) String ¶ added in v0.17.0
func (e WsCloseCode) String() string
String returns the WsCloseCode constant's name, or its numeric form when the value is not a known constant.
type WsOpcode ¶ added in v0.17.0
type WsOpcode int32
WebSocket opcodes that denote the type of frame sent or received by a WebSocket endpoint. Opcodes define the interpretation of their associated payload data.
type WsResponseStatus ¶ added in v0.17.0
type WsResponseStatus int32
The status of a WebSocket server's response to a client's request to connect.
const ( Nw_ws_response_status_invalid WsResponseStatus = 0 Nw_ws_response_status_accept WsResponseStatus = 1 Nw_ws_response_status_reject WsResponseStatus = 2 )
func (WsResponseStatus) String ¶ added in v0.17.0
func (e WsResponseStatus) String() string
String returns the WsResponseStatus constant's name, or its numeric form when the value is not a known constant.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- DDDeviceEvent_generated.go
- DDDevice_generated.go
- DDDiscoverySession_generated.go
- devicediscoveryextension_cfunctions_generated.go
- devicediscoveryextension_constants_generated.go
- devicediscoveryextension_enums_generated.go
- devicediscoveryextension_errors_generated.go
- devicediscoveryextension_runtime_generated.go
- doc.go