ServerConfig

@Serializable
data class ServerConfig(var host: InetAddress? = InetAddress.getLoopbackAddress(), var port: Int = 0, var readOnlyPort: Int = -1, var numThreads: Int = 42, var ssl: ServerConfig.SslSettings? = null)

Constructors

Link copied to clipboard
constructor(host: InetAddress? = InetAddress.getLoopbackAddress(), port: Int = 0, readOnlyPort: Int = -1, numThreads: Int = 42, ssl: ServerConfig.SslSettings? = null)

Types

Link copied to clipboard
@Serializable
data class SslSettings(val keyStore: Path, val keyStorePassword: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var port: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun numThreads(numThreads: Int): ServerConfig
Link copied to clipboard
fun port(port: Int): ServerConfig

Port on which to start a read-write Postgres wire-compatible server.

Link copied to clipboard
fun readOnlyPort(readOnlyPort: Int = 0): ServerConfig

Port on which to start a read-only Postgres wire-compatible server.

Link copied to clipboard
fun ssl(keyStore: Path, keyStorePassword: String): ServerConfig

Enable SSL for the PG wire server.