Other Structures
The following structures are available globally.
-
A directory or file in the Ditto working directory. Directories can be traversed by accessing the
See morechildItems
property. Files won’t have any children.Declaration
Swift
public struct DiskUsageItem
extension DiskUsageItem: Equatable
extension DiskUsageItem: Hashable
extension DiskUsageItem: CustomStringConvertible
-
P2P BluetoothLE configuration. Part of
See moreDittoPeerToPeer
.Declaration
Swift
public struct DittoBluetoothLEConfig : Codable, Equatable
-
P2P LAN configuration to configure peer discovery via mDNS or multicast. Part of
See moreDittoPeerToPeer
.Declaration
Swift
public struct DittoLANConfig : Codable, Equatable
-
P2P AWDL configuration. Part of
See moreDittoPeerToPeer
.Declaration
Swift
public struct DittoAWDLConfig : Codable, Equatable
-
Configuration of peer-to-peer transports, which are able to discover and connect to peers on their own.
For more information refer to the documentation for
See moreDittoTransportConfig
.Declaration
Swift
public struct DittoPeerToPeer : Codable, Equatable
-
Specific servers that Ditto should attempt to connect to. TCP servers are specified as “host:port”. WebSocket URLs take the form “wss://hydra.ditto.live”. Please refer to the documentation on Ditto’s website for configuring cloud or client/server scenarios.
See moreDeclaration
Swift
public struct DittoConnect : Equatable
extension DittoConnect: Codable
-
TCP listening configuration.
See moreDeclaration
Swift
public struct DittoTCPListenConfig : Codable, Equatable
-
HTTP & WebSocket listening configuration.
See moreDeclaration
Swift
public struct DittoHTTPListenConfig : Codable, Equatable
-
Configure this device as a Ditto server. Disabled by default.
This is advanced usage that is not needed in most situations. Please refer to the documentation on Ditto’s website for scenarios and example configurations.
See moreDeclaration
Swift
public struct DittoListen : Codable, Equatable
-
Settings not associated with any specific type of transport.
See moreDeclaration
Swift
public struct DittoGlobalConfig : Codable, Equatable
-
Represents a connection between two peers on the Ditto mesh network.
See moreDeclaration
Swift
public struct DittoConnection
extension DittoConnection: Identifiable
extension DittoConnection: Equatable
extension DittoConnection: Hashable
extension DittoConnection: Codable
-
Undocumented
See moreDeclaration
Swift
public struct DittoPeer
extension DittoPeer: Equatable
extension DittoPeer: Hashable
extension DittoPeer: Codable
-
Represents the Ditto mesh network of peers and their connections between each other. The
See morelocalPeer
is the entry point, all others are remote peers known by the local peer (either directly or via other remote peers).Declaration
Swift
public struct DittoPresenceGraph
extension DittoPresenceGraph: Equatable
extension DittoPresenceGraph: Hashable
extension DittoPresenceGraph: Codable