Class Audit

Hierarchy

  • CreateDestroyStartStop
    • Audit

Constructors

Properties

[initLock]: RWLockWriter
auditDbPath: readonly (string | Buffer)[] = ...
auditEventDbPath: readonly (string | Buffer)[] = ...
auditTopicDbPath: readonly (string | Buffer)[] = ...
db: DB
dbLastAuditEventIdPath: readonly (string | Buffer)[] = ...
discovery: Discovery
eventHandlerMap: Map<typeof AbstractEvent, {
    handler: ((evt) => Promise<void>);
    target: EventTarget;
}> = ...

Type declaration

  • handler: ((evt) => Promise<void>)
      • (evt): Promise<void>
      • Parameters

        • evt: AbstractEvent<unknown>

        Returns Promise<void>

  • target: EventTarget
generateAuditEventId: (() => AuditEventId)

Type declaration

logger: Logger
nodeConnectionManager: NodeConnectionManager
taskPromises: Set<PromiseCancellable<void>> = ...

Accessors

  • get [destroyed](): boolean
  • Returns boolean

  • get [eventHandled](): ReadonlyWeakSet<Event>
  • Returns ReadonlyWeakSet<Event>

  • get [eventHandlers](): ReadonlyMap<string, Set<EventHandlerInfo>>
  • Returns ReadonlyMap<string, Set<EventHandlerInfo>>

  • get [eventTarget](): EventTarget
  • Returns EventTarget

  • get [handleEventError](): ((evt) => void)
  • Returns ((evt) => void)

      • (evt): void
      • Parameters

        • evt: EventError

        Returns void

  • get [running](): boolean
  • Returns boolean

  • get [statusP](): Promise<Status>
  • Returns Promise<Status>

  • get [status](): Status
  • Returns Status

Methods

  • Parameters

    • type: string
    • callback: null | EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Returns Promise<void>

  • Parameters

    • event: Event

    Returns boolean

  • Parameters

    • type: string
    • callback: null | EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

  • Type Parameters

    • T extends readonly ["node", "connection", "reverse"] | readonly ["node", "connection", "forward"] | readonly ["discovery", "vertex", "queued"] | readonly ["discovery", "vertex", "processed"] | readonly ["discovery", "vertex", "failed"] | readonly ["discovery", "vertex", "culled"] | readonly ["discovery", "vertex", "cancelled"] | readonly ["discovery", "checkRediscovery"]

    Parameters

    • topicPath: readonly ["node", "connection", "reverse"] | readonly ["node", "connection", "forward"] | readonly ["discovery", "vertex", "queued"] | readonly ["discovery", "vertex", "processed"] | readonly ["discovery", "vertex", "failed"] | readonly ["discovery", "vertex", "culled"] | readonly ["discovery", "vertex", "cancelled"] | readonly ["discovery", "checkRediscovery"]
    • auditEvent: TopicSubPathToAuditEvent<T>
    • Optional tran: DBTransaction

    Returns any

  • Type Parameters

    • T extends typeof AbstractEvent

    • P extends readonly ["node", "connection", "reverse"] | readonly ["node", "connection", "forward"] | readonly ["discovery", "vertex", "queued"] | readonly ["discovery", "vertex", "processed"] | readonly ["discovery", "vertex", "failed"] | readonly ["discovery", "vertex", "culled"] | readonly ["discovery", "vertex", "cancelled"] | readonly ["discovery", "checkRediscovery"]

    Parameters

    Returns void

  • Parameters

    • __namedParameters: {
          fresh?: boolean;
      } = {}
      • Optional fresh?: boolean

    Returns Promise<void>

  • Parameters

    • __namedParameters: {
          force?: boolean;
      } = {}
      • Optional force?: boolean

    Returns Promise<void>

Generated using TypeDoc