Vana SDK - v0.1.0
    Preparing search index...

    Interface Service<TConfig>

    Generic service interface

    interface Service<TConfig = unknown> {
        name: string;
        config: TConfig;
        status: "error" | "running" | "starting" | "idle" | "stopping" | "stopped";
        start(): Promise<void>;
        stop(): Promise<void>;
        restart(): Promise<void>;
        getHealth(): Promise<
            { healthy: boolean; details?: Record<string, unknown> },
        >;
    }

    Type Parameters

    • TConfig = unknown
    Index

    Properties

    name: string

    Service name

    config: TConfig

    Service configuration

    status: "error" | "running" | "starting" | "idle" | "stopping" | "stopped"

    Service status

    Methods

    • Get health status

      Returns Promise<{ healthy: boolean; details?: Record<string, unknown> }>