xray-core
    Preparing search index...

    Interface XRayStorage

    Interface for X-Ray data persistence Implementations can store in memory, localStorage, database, etc.

    interface XRayStorage {
        clear(): void;
        deleteSession(id: string): void;
        export(): string;
        getAllSessions(): XRaySession[];
        getSession(id: string): XRaySession | null;
        import(data: string): void;
        saveSession(session: XRaySession): void;
    }

    Implemented by

    Index

    Methods

    • Clear all sessions

      Returns void

    • Delete a session

      Parameters

      • id: string

      Returns void

    • Export all data as JSON string

      Returns string

    • Import data from JSON string

      Parameters

      • data: string

      Returns void