← Back to Kairo Docs|API Reference (Dokka)

Server

class Server(name: String, features: List<Feature>)

A Kairo Server composes Features and manages their lifecycle.

Parameters

name

A human-readable name for logging and debugging.

features

The Features to manage. Order does not matter; lifecycle priority determines execution order.

Constructors

Link copied to clipboard
constructor(name: String, features: List<Feature>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun start()

Attempts to start the Server. If this method returns, the Server started successfully. If this method throws, the Server failed to start.

Link copied to clipboard
suspend fun stop()

Stops the Server. This method never throws.

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