@grandlinex/core
    Preparing search index...

    Class CoreKernel<X, Y>Abstract

    Abstract base class that implements the core kernel functionality.

    Provides a foundation for registering modules, handling lifecycle events, managing configuration, logging, and cryptographic operations. Concrete kernels should extend this class, supply a specific base module via setBaseModule, and optionally customize behaviour.

    The kernel is generic over a cryptographic client type ICoreCClient and a base module type ICoreKernelModule. It extends CoreLogChannel and implements ICoreKernel and IHaveLogger.

    Configuration options for the kernel.

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    appCode: string
    appName: string
    appVersion: string
    channel: string
    coreModule: ICoreModule
    cryptoClient: X | null
    devMode: boolean
    envStore: IStore
    eventMap: Map<string, (kernel: CoreKernel<X>) => Promise<unknown>>
    extension: CMap<
        string,
        CoreKernelExtension<ICoreKernel<any, ICoreAnyModule>, any, any, any, any>,
    >
    folderCreateSkip: boolean
    globalLogger: CoreLogger
    kernelModule: Y | null
    logger: CoreLogger | null
    moduleList: ICoreKernelModule<any, any, any, any, any>[]
    offline: boolean
    state: any = null
    updateSkip: boolean

    Methods

    • Parameters

      • full: boolean = false

      Returns number

    • Set function run on trigger Cycle functions

      Parameters

      • event: string
      • callback: (ik: CoreKernel<X>) => Promise<unknown>

      Returns void

      KernelTrigger

    • Run trigger function Cycle functions

      Parameters

      • event: string

      Returns Promise<unknown>

      KernelEvent