Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MemoryWhitespaceRepository

A whiteboard repository that stores its revisions in memory.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _CONFIG

Stores the configuration for this repository.

Protected _CONTROLLER

_CONTROLLER: Controller

Stores the underlying controller.

Protected _current

Stores the current revision.

Protected _nextRevisionNr

_nextRevisionNr: number = INITIAL_REVISION_NEXT_NR

The next revision ID.

Protected _revisions

_revisions: WhiteboardRevision[]

Stores the revisions.

Accessors

config

controller

current

Methods

addRevision

Protected clearDirectory

  • clearDirectory(): PromiseLike<boolean>

Protected createDirectoryIfNeeded

  • createDirectoryIfNeeded(): PromiseLike<string>

dispose

  • dispose(): void

Protected forEachFile

  • forEachFile(cb: function): PromiseLike<boolean>
  • Invokes a callback for each whiteboard file.

    Parameters

    • cb: function

      The callback.

        • (data: Buffer, filePath: string, stats: Stats): void
        • Parameters

          • data: Buffer
          • filePath: string
          • stats: Stats

          Returns void

    Returns PromiseLike<boolean>

    The promise.

get

init

  • init(): PromiseLike<boolean>

Protected reset

  • reset(): PromiseLike<boolean>

Protected resetVars

  • resetVars(): void

Protected saveRevision

setBoard

Protected updateNextAndPreviousMethods

Generated using TypeDoc