ConfigCallback

fun interface ConfigCallback(source)

A Callback for configuring TorConfig.BuilderScope.

e.g.

ConfigCallback { environment ->
    TorOption.__SocksPort.configure { auto() }

    TorOption.ClientOnionAuthDir.configure(directory =
        environment.workDirectory
            .resolve("auth_private_files")
    )

    // ...
}

See also

Inheritors

Types

Link copied to clipboard

After all ConfigCallback for TorRuntime.BuilderScope.config have been applied, defaults are then configured in order to ensure minimum settings required for TorRuntime are had.

Functions

Link copied to clipboard
abstract operator fun TorConfig.BuilderScope.invoke(environment: TorRuntime.Environment)