Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/mongo/config

Index

Variables

Functions

Variables

Const models

models: { g: { blocks: Model<Document<any, any, any>, any, any>; hashes: Model<Document<any, any, any>, any, any>; pools: Model<Document<any, any, any>, any, any>; tokens: Model<Document<any, any, any>, any, any>; trash: Model<Document<any, any, any>, any, any>; whales: Model<Document<any, any, any>, any, any> }; txM: { confirmed: Model<Document<any, any, any>, any, any>; pending: Model<Document<any, any, any>, any, any> } } = ...

Type declaration

  • g: { blocks: Model<Document<any, any, any>, any, any>; hashes: Model<Document<any, any, any>, any, any>; pools: Model<Document<any, any, any>, any, any>; tokens: Model<Document<any, any, any>, any, any>; trash: Model<Document<any, any, any>, any, any>; whales: Model<Document<any, any, any>, any, any> }
    • blocks: Model<Document<any, any, any>, any, any>
    • hashes: Model<Document<any, any, any>, any, any>
    • pools: Model<Document<any, any, any>, any, any>
    • tokens: Model<Document<any, any, any>, any, any>
    • trash: Model<Document<any, any, any>, any, any>
    • whales: Model<Document<any, any, any>, any, any>
  • txM: { confirmed: Model<Document<any, any, any>, any, any>; pending: Model<Document<any, any, any>, any, any> }
    • confirmed: Model<Document<any, any, any>, any, any>
    • pending: Model<Document<any, any, any>, any, any>

Const mongoUtils

mongoUtils: { DELETE_ONLY: { $match: { operationType: string } }[]; DEL_PEND: string; FIRST_QUERY: { limit: number; sort: { timestampTx: number } }; INSERT_ONLY: { $match: { operationType: string } }[]; INS_CONF: string; INS_PEND: string; LAST_QUERY: { limit: number; sort: { timestampTx: number } }; UPDATE_ONLY: { $match: { operationType: string } }[]; ignoreAddressNamespace: string[] } = ...

Type declaration

  • DELETE_ONLY: { $match: { operationType: string } }[]
  • DEL_PEND: string
  • FIRST_QUERY: { limit: number; sort: { timestampTx: number } }
    • limit: number
    • sort: { timestampTx: number }
      • timestampTx: number
  • INSERT_ONLY: { $match: { operationType: string } }[]
  • INS_CONF: string
  • INS_PEND: string
  • LAST_QUERY: { limit: number; sort: { timestampTx: number } }
    • limit: number
    • sort: { timestampTx: number }
      • timestampTx: number
  • UPDATE_ONLY: { $match: { operationType: string } }[]
  • ignoreAddressNamespace: string[]

Functions

Const startMongo

  • startMongo(serverName: string): Promise<boolean>

Generated using TypeDoc