Iskra API Reference
    Preparing search index...

    Class Kernel

    Core microkernel orchestrator that manages features, dependencies, and application lifecycle.

    Index
    • How errors are reported (ErrorHandlerFeature's options); only before initialize() ends.

      Parameters

      Returns void

    • Returns Hono

    • A registered feature. Built-in names (and names added to FeatureRegistry) return their feature's type; any other name takes the type as T.

      Type Parameters

      Parameters

      • name: K

      Returns FeatureRegistry[K] | undefined

    • A registered feature. Built-in names (and names added to FeatureRegistry) return their feature's type; any other name takes the type as T.

      Type Parameters

      Parameters

      • name: string

      Returns T | undefined

    • The names of the registered features, in registration order.

      Returns string[]

    • The logger features should use (see KernelConfig.logger).

      Returns KernelLogger

    • Answers requests by the response contract (see KernelConfig.contract).

      Returns Responder

    • Returns Promise<void>

    • Parameters

      Returns void

    • Replaces the logger; only before initialize() (WebPlugin passes the App's).

      Parameters

      Returns void

    • Stops accepting connections, waits for in-flight requests to finish, then shuts features down in reverse dependency order (the auth feature before the db it uses). Every feature is shut down even if one fails; the failures are rethrown together at the end.

      Returns Promise<void>

    • Returns Promise<void>