Peer

class Peer(val name: String, val logDirectory: Path? = null, val localLabel: String = "-", val extraConfig: String? = null, val incoming: SimpleDataSourceConfig.Peer.Incoming? = null, val outgoing: List<SimpleDataSourceConfig.Peer.Outgoing> = emptyList(), val requiredServices: List<String> = emptyList(), val devOverride: Boolean = false) : SimpleDataSourceConfig(source)

Configuration for a DataSource that connects to specific peers.

Constructors

Link copied to clipboard
constructor(name: String, logDirectory: Path? = null, localLabel: String = "-", extraConfig: String? = null, incoming: SimpleDataSourceConfig.Peer.Incoming? = null, outgoing: List<SimpleDataSourceConfig.Peer.Outgoing> = emptyList(), requiredServices: List<String> = emptyList(), devOverride: Boolean = false)

Types

Link copied to clipboard
class Incoming(val port: Int, val isWebsocket: Boolean)

Configuration for accepting incoming connections.

Link copied to clipboard
class Outgoing(val hostname: String, val port: Int, val isWebsocket: Boolean)

Configuration for an outgoing peer connection.

Properties

Link copied to clipboard
val devOverride: Boolean = false

Whether to override development mode checks.

Link copied to clipboard
open override val extraConfig: String? = null

Any extra configuration to append to the configuration string.

Link copied to clipboard

Optional configuration for accepting incoming connections.

Link copied to clipboard
open override val localLabel: String

The local label for the DataSource.

Link copied to clipboard
open override val logDirectory: Path? = null

The directory where log files will be written.

Link copied to clipboard
open override val name: String

The name of the DataSource.

Link copied to clipboard

List of outgoing peer connections.

Link copied to clipboard

List of services required before this DataSource becomes active.

Functions

Link copied to clipboard
open override fun toString(): String