Preset

interface Preset

Configures a freshly created `EndpointBuilder`.

This mirrors the upstream iroh::endpoint::presets::Preset trait and is implementable from the foreign language: implement apply to configure the builder however you like (typically calling one of the `EndpointBuilder::apply_n0` / apply_minimal / apply_n0_disable_relay baselines first, since those install the crypto provider). The built-in presets are available as `preset_n0`, `preset_minimal`, and `preset_n0_disable_relay`.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun apply(builder: EndpointBuilder)