UNPKG

kaven-utils

Version:

Utils for Node.js.

28 lines (27 loc) 1.02 kB
/******************************************************************** * @author: Kaven * @email: kaven@wuwenkai.com * @website: http://blog.kaven.xyz * @file: [Kaven-Utils] /src/net/authentication/KavenAuthorizationRecords.ts * @create: 2022-09-20 10:55:20.367 * @modify: 2025-06-21 13:43:59.688 * @version: 5.5.2 * @times: 4 * @lines: 69 * @copyright: Copyright © 2022-2025 Kaven. All Rights Reserved. * @description: [description] * @license: [license] ********************************************************************/ import { KavenAuthorizationRecord } from "./KavenAuthorizationRecord.js"; /** * @since 4.3.6 * @version 2022-09-20 */ export declare class KavenAuthorizationRecords { private readonly records; AuthorizationLimits: Map<number, number>; constructor(); AddRecord(key: string, success: boolean): void; GetRecords(key: string): KavenAuthorizationRecord[] | undefined; CanAuthenticate(key: string): boolean; }