@omgovich/firebase-functions-rate-limiter
Version:
JS/TS library that allows you to set per - time, per - user or per - anything limits for calling Firebase cloud functions
7 lines (6 loc) • 382 B
TypeScript
import { PersistenceRecord } from "./PersistenceRecord";
export interface PersistenceProvider {
updateAndGet(collectionName: string, recordName: string, updater: (record: PersistenceRecord) => PersistenceRecord): Promise<PersistenceRecord>;
get(collectionName: string, recordName: string): Promise<PersistenceRecord>;
setDebugFn(debugFn: (msg: string) => void): void;
}